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

CKA study material · question 102 of 1000

A Deployment references a ConfigMap built by configMapGenerator. Why does editing the source file trigger a rollout? Choose two.

  1. Generated ConfigMaps are immutable by default
  2. Kustomize rewrites references to the generated name
  3. The generated ConfigMap gets a content-based name suffix
  4. kubectl apply always restarts referencing Deployments
Show the answer

Answer: C. The generated ConfigMap gets a content-based name suffix
B. Kustomize rewrites references to the generated name

A changed file produces a new generated name and the reference is rewritten, so the Deployment rolls out.

Source: Declarative Management of Kubernetes Objects Using Kustomize (Kubernetes) — configMapGenerator

Challenge yourself on this topic → Study as cards