Note: If you are interested in creating a Kubernetes Deployment check out this previous post:
On with the show…
In every Kubernetes Deployment there are 3 sections to the configuration file:
The first two are explicitly written in a configuration file by you the engineer but the status section gets added by K8’s when the deployment is triggered. It is the clusters master node’s etcd component that contains this data as it tracks the expected state vs the currently deployment state of the cluster.
To print the output of the K8’s deployment to your terminal and also view the status data in YAML format use the following command:
kubectl get deployment reporting-app-deployment -o yaml
You will see a lot of data populated by K8’s in each section of the output, but the key thing to note is the
status: section which can be useful to see if your expected K8’s environment matches what is currently running. Specifically check that the values for