Foundations, topic 4 of 61
Objects, labels and namespaces
Everything in Kubernetes is an object with a spec, what you want, and a status, what is true now. You write objects as YAML manifests and send them to the API server; controllers then work to close the gap.
Labels are key-value pairs on objects, and selectors pick objects by them: that is how a Service finds its Pods and a Deployment its ReplicaSets. Namespaces split one cluster into named groups, for teams or environments, and are where quotas and many permissions apply.
On Opsfolk
- KCNA practice: Kubernetes and cloud native basicsQuiz, 40 questions
Elsewhere
- Objects in KubernetesOfficial
- Labels and selectorsOfficial
- NamespacesOfficial