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
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.
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