Declarative and imperative management · Question 11 of 12
A team scales a Deployment to 8 replicas with kubectl scale. The manifest in the repository says replicas: 3. Later the pipeline applies the manifest with kubectl apply -f (without --server-side). What happens?
1 answer is correct. Hard Created with AI
Show answer
Answer
- B The Deployment drops back to 3 replicas
Explanation
For fields that are in the manifest, apply sets the value from the file again. If an HPA is supposed to scale, you leave replicas out of the manifest.