Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running kubectl run ... only creates a Pod #34

Open
vmorris opened this issue Aug 31, 2020 · 0 comments
Open

Running kubectl run ... only creates a Pod #34

vmorris opened this issue Aug 31, 2020 · 0 comments

Comments

@vmorris
Copy link

vmorris commented Aug 31, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant