July 2018
Intermediate to advanced
504 pages
11h 34m
English
As with Docker, we can run a Kubernetes pod with the kubectl run command. Let's start with a simple web server example:
$ kubectl run httpd --image=httpd
We can verify the result by getting a list of Kubernetes pods, by running the kubectl get pods command:
$ kubectl get podsNAME READY STATUS RESTARTS AGEhttpd-8576c89d7-qjd62 1/1 Running 0 6m