July 2018
Intermediate to advanced
504 pages
11h 34m
English
When we create an application with the kubectl run command, it takes care of several things. Let's create an httpd pod by running this command one more time and take a deeper look at what actually happens behind the scenes:
$ kubectl run httpd1 --image=httpd
We can take a look at the series of events that took place during this process by running the kubectl get events command. It shows you what Kubernetes did behind the scenes to launch this application. You will see quite a long list, which may seem confusing at first glance, but we can narrow it down by using the following command:
$ kubectl get events --sort-by=.metadata.creationTimestamp | tail -n 84s 4s ... kubelet, minikube pulling image "httpd"4s 4s ...