Study. uk . com
  1. Home
  2. All questions
  3. Question 522

CKA study material · question 522 of 1000

A namespace contains both a Deployment and a Job, and both controllers create Pods. What stops the Job controller from deleting the Deployment's Pods?

  1. Labels, which let each controller recognise its own Pods
  2. A per-controller RBAC Role limiting which Pods it may delete
  3. Namespace-scoped leader election between the two controllers
  4. The Pod's restartPolicy, which differs between the two
Show the answer

Answer: A. Labels, which let each controller recognise its own Pods

Controllers use label information to tell apart the objects that belong to their own controlling resource, which is why several controllers can create the same kind of object without interfering.

Source: Controllers (Kubernetes) — Design

Challenge yourself on this topic → Study as cards