burrsutter/9stepsawesome

Running `kubectl run ...` only creates a Pod

vmorris opened this issue · 0 comments

To be fair, I didn't run through the whole installation guide - I have my own custom k3s cluster here... but when I run the command
$ kubectl run hello-minikube --image=k8s.gcr.io/echoserver:1.10 --port=8080 I only end up with a single Pod. No Deployment or ReplicaSet is created..

https://github.com/burrsutter/9stepsawesome/blame/master/1_installation_started.adoc#L272

$ kubectl run hello-minikube --image=k8s.gcr.io/echoserver:1.10 --port=8080
pod/hello-minikube created
$ kubectl get all
NAME                 READY   STATUS    RESTARTS   AGE
pod/hello-minikube   1/1     Running   0          7s

NAME                 TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE
service/kubernetes   ClusterIP   10.43.0.1    <none>        443/TCP   3d6h
$ kubectl expose deployment hello-minikube --type=NodePort
Error from server (NotFound): deployments.apps "hello-minikube" not found$ kubectl expose deployment hello-minikube --type=NodePort
Error from server (NotFound): deployments.apps "hello-minikube" not found

Is this something new in kubernetes, or maybe it's because I'm using k3s? I noticed some verbage in the installation document about the run command being deprecated and that I would get a warning... There was no warning.