Question 250
At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: A prepared Kustomize overlay at ./overlays/uat changes the labels for the lab application dispatch-api in namespace fulfillment. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?
Explanation
Correct Answer
Kustomize renders declarative resource transformations before Kubernetes admission and reconciliation. This explains the stated condition. The corresponding action is: Run kubectl apply -k ./overlays/uat after inspecting the rendered output with kubectl kustomize ./overlays/uat. The direct acceptance evidence is: Run kubectl -n fulfillment get deployment dispatch-api --show-labels and compare the live labels with the overlay.
Incorrect Answers
The offered statement is true for this other mechanism: A namespaced Role expresses allowed resource verbs; it has no effect until a RoleBinding associates a subject. It does not explain the facts described here, which follow from: Kustomize renders declarative resource transformations before Kubernetes admission and reconciliation.
This principle describes a separate cause: Nodes are cluster-scoped and their access rules belong in a ClusterRole rather than a namespaced Role. The reported condition is governed by: Kustomize renders declarative resource transformations before Kubernetes admission and reconciliation. The two mechanisms should not be conflated.
A RoleBinding associates the service account subject with a Role inside the binding namespace. That explanation applies to a different technical failure. Here the controlling principle is: Kustomize renders declarative resource transformations before Kubernetes admission and reconciliation.