44. 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.
Essential
Linux 0/29
AWS 0/10
Kubernetes 0/15
CI/CD 0/5
Networking 0/9
Need more practice in this area? Explore more questions →
Yelp
Accenture
Coinbase
Adobe
EPAM
Twitch
Amazon
Kayak
Autodesk
Lyft
Revolut
RedHat
Bloomberg
Datadog
Palantir
TCS
HashiCorp
Google
DeutscheBank
GitHub
Apple
Cloudflare
Stripe
Microsoft
NVIDIA
GoDaddy
X
SAP
Spotify
Airbnb
Meta
Reddit
Okta
Dropbox
Slack
ActivisionBlizzard
Zscaler
Uber
IBM
DeliveryHero
Robinhood
GitLab
Shopify
Samsung
Elastic
Twilio
Netflix
CrowdStrike
Ubisoft
Anthropic
Capital One
Splunk
Intel
AMD
Databricks