Bird
0
0

A Kubernetes deployment uses a ConfigMap for environment variables. After updating the ConfigMap, pods do not reflect changes. What troubleshooting step should you take?

hard📝 Application Q9 of 15
Kubernetes - Troubleshooting
A Kubernetes deployment uses a ConfigMap for environment variables. After updating the ConfigMap, pods do not reflect changes. What troubleshooting step should you take?
AUpdate the deployment YAML without restarting pods
BDelete the ConfigMap and recreate it
CRestart pods to reload updated ConfigMap values
DScale deployment to zero replicas permanently
Step-by-Step Solution
Solution:
  1. Step 1: Understand ConfigMap updates do not auto-refresh in running pods

    Pods keep old values until restarted.
  2. Step 2: Restart pods to apply new ConfigMap values

    Restarting forces pods to reload environment variables.
  3. Final Answer:

    Restart pods to reload updated ConfigMap values -> Option C
  4. Quick Check:

    ConfigMap update needs pod restart [OK]
Quick Trick: Restart pods after ConfigMap changes [OK]
Common Mistakes:
  • Deleting ConfigMap unnecessarily
  • Scaling deployment without restart
  • Updating YAML without pod restart

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes