<p>I've just started learning Kubernetes and I have created the deployment using the command <code>kubectl run demo1-k8s --image=demo1-k8s:1.0 --port 8080 --image-pull-policy=Never</code>. I got the message that deployment get created. But when I listed the deployment (<code>kubectl get deployments</code>), deployments not listed instead and I got the message <code>No resources found in default namespace.</code></p>
<p>Any idea guys?</p>

Shaji
<p>From the <a href="https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#run" rel="nofollow noreferrer">docs</a> <code>kubectl run</code> creates a pod and not deployment. So you can use <code>kubectl get pods</code> command to check if the pod is created or not. For creating deployment use <code>kubectl create deployment</code> as documented <a href="https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#-em-deployment-em-" rel="nofollow noreferrer">here</a></p>
