Just as we can execute docker run to create containers, kubectl allows us to create Pods with a single command. For example, if we'd like to create a Pod with a Mongo database, the command is as follows.
kubectl run db --image mongo
You'll notice that the output says that deployment "db" was created. Kubernetes runs more than a single Pod. It created a Deployment and a few other things. We won't go into all the details just yet. What matters, for now, is that we created a Pod. We can confirm that by listing all the Pods in the cluster:
kubectl get pods
The output is as follows:
NAME READY STATUS RESTARTS AGE db-59d5f5b96b-kch6p 0/1 ContainerCreating 0 1m
We can see the name of the Pod, its readiness, the status, the number of times it restarted, and for how long it has existed (its...