4. YAML Configuration File
Last updated
Last updated
Config File is written in YAML Format
Config File should be stored with the code inside SCM
Metadata
Specification
Status (Auto Generated & Added by K8)
K8 Gets Status from etcd
The specified kind has its own metadata and spec
Pod has also a section of its own which contains its own configuration
Metadata section contain the labels
Spec section contains the selectors
Connecting Deployment to Pods
Deployment looks which pods belong to it using labels (key value pairs)
The label is matched by the selector
Connecting Services to Deployments
Similar concept as connecting deployment to pods
Service listens on port and forwards the request to target port which must be of a pod