Getting a snapshot of the current state

You can see the current snapshot of what Kubernetes knows about the state of your code using the kubectl describe or kubectl get command. If you are just trying to see the state for yourself interactively, then the kubectl describe command is the most valuable. Remember that Kubernetes manages a chain of objects related to running your code, so if you want to see a full snapshot, you will want to look at the status of each of the objects: deployment, ReplicaSet, and Pods. In practice, looking at the state of deployment and then jumping down to Pods will often provide you with any detail you want.

You can see these details of what Kubernetes is doing with your code by looking at the raw data for your ...

Get Kubernetes for Developers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.