ConfigMap Reload with Sidecar
Beginner Mode
Start your terminal to use beginner mode.
Scenario
Your application needs to react to configuration changes without requiring a pod restart.
Task
Create a ConfigMap and a pod with a sidecar that watches for configuration file changes. Mount the ConfigMap to both containers.
| Property | Value |
|---|---|
| Namespace | default |
| ConfigMap | app-config |
| ConfigMap key | settings.conf |
| ConfigMap value | debug=false |
| Pod | app-pod |
| Main container | app |
| Main image | nginx:1.24 |
| Sidecar container | config-watcher |
| Sidecar image | busybox |
| Mount path | /etc/config |
Sidecar container snippet is at /home/interview/watcher.yaml.
Terminal requires a larger screen
Open this page on a desktop or tablet (≥ 768px) to launch the terminal and practice hands-on.
Kubernetes Environment
Launch a live cluster to solve this challenge.
Track
| Question | Difficulty | Company | Access |
|---|
Need more practice in this area? Explore more questions →
Yelp