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

CKA study material · question 637 of 1000

Two Deployments in a namespace were written with the same label selector. What is the documented consequence?

  1. The newer Deployment adopts all the Pods and the older one idles
  2. The controllers fight over the same Pods and neither behaves correctly
  3. The API server rejects the second Deployment at admission
  4. The Pods are split evenly between the two controllers
Show the answer

Answer: B. The controllers fight over the same Pods and neither behaves correctly

Overlapping selectors are not detected or prevented; both controllers claim the same Pods and interfere with each other, which is why selectors must be distinct.

Source: Deployments (Kubernetes) — Writing a Deployment Spec

Challenge yourself on this topic → Study as cards