Interview Prep/Kubernetes/Upgrades, etcd, disaster recovery and incidents

What labels and annotations should every workload carry, and why?

BeginnerScenarioUpgrades, etcd, disaster recovery and incidents
Answer

Situation read → The platform team wants consistent metadata for cost and ownership.

What I'd do →

  1. Use recommended labels such as app.kubernetes.io/name, app.kubernetes.io/instance, app.kubernetes.io/version
  2. Add team, env and cost-center labels
  3. Use annotations for non-identifying metadata such as runbook links
  4. Enforce with Kyverno or ValidatingAdmissionPolicy
  5. Query with kubectl get pods -l team=payments

Why → Labels drive selectors, cost allocation and policy, so they must be consistent.

Interview tip → Remember labels select, annotations describe.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Upgrades, etcd, disaster recovery and incidents