Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

kubectl run not creating deployment

I’m running Kubernetes with docker desktop on windows. DD is up-to-date, and the kubectl version command returns 1.22 as both the client and server version.

I executed kubectl run my-apache --image httpd, then kubectl get all, which only shows
enter image description here

There is no deployment or replicaset as I expect. This means some commands, such as kubectl scale doesn’t work. Any idea what’s wrong? Thanks.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

The kubectl run command create pod not deployment, I mean it used to create in the past before kubernetes version 1.18 I guess.

For deployment you have run this command

kubectl create deployment my-apache --image httpd

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading