Deployment Configuration Metadata
Continuing with the YAML output, we see the next general block of output concerns the metadata of the deployment. This is where we would find labels, annotations, and other non-configuration information. Note that this output will not show all possible configuration. Many settings which are set to false by default are not shown, like podAffinity or nodeAffinity.
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
creationTimestamp: 2017-12-21T13:57:07Z
generation: 1
labels:
app: dev-web
name: dev-web
namespace: default
resourceVersion: "774003"
uid: d52d3a63-e656-11e7-9319-42010a800003see an explanation of the information present in the deployment metadata.
annotations
These values do not configure the object, but provide further information that could be helpful to third-party applications or administrative tracking. Unlike labels, they cannot be used to select an object with kubectl.
creationTimestamp
Shows when the object was originally created. Does not update if the object is edited.
generation
How many times this object has been edited, such as changing the number of replicas, for example.
labels
Arbitrary strings used to select or exclude objects for use with kubectl, or other API calls. Helpful for administrators to select objects outside of typical object boundaries.
name
This is a required string, which we passed from the command line. The name must be unique to the namespace.
resourceVersion
A value tied to the etcd database to help with concurrency of objects. Any changes to the database will cause this number to change.
uid
Remains a unique ID for the life of the object.
Last updated