
Answer-first summary for fast verification
Answer: .spec.template
A Deployment’s rollout is triggered if and only if the Deployment’s Pod template (that is, .spec.template) is changed. For more information, refer to the Kubernetes documentation: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
When deploying an application on a Kubernetes cluster, a Deployment's rollout is triggered only if the Deployment's pod template is changed. This includes updates to labels or container images. Other updates, like scaling the Deployment, do not trigger a rollout. Which of the following names would need to be changed to trigger a rollout?
A
.spectemplate.yaml
B
App.py
C
.spec.template
D
.template.yaml
No comments yet.