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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.