{ "id": "configmap-volume", "title": "Mount ConfigMap as Volume", "category": "Configuration", "difficulty": "Medium", "type": "task", "weight": 7, "description": "## Inject Configuration via a ConfigMap Volume\n\nAn application reads its configuration from files on disk at `/etc/app-config/`.\n\n**Your tasks:**\n1. Create a **ConfigMap** named `app-config` in the `default` namespace with the following key-value pairs:\n - `environment`: `production`\n - `log_level`: `warn`\n - `max_connections`: `200`\n2. Create a **Pod** named `config-reader` using image `busybox:1.36`\n3. Mount the ConfigMap as a **volume** at `/etc/app-config` inside the container\n4. The pod should run the command: `sleep 3600`", "hints": [ { "title": "Create the ConfigMap", "body": "Use `--from-literal` for each key-value pair.", "command": "kubectl create configmap app-config --from-literal=environment=production --from-literal=log_level=warn --from-literal=max_connections=200" }, { "title": "Write the Pod manifest", "body": "Use a heredoc piped directly to kubectl apply -f - to avoid writing to a temp file.", "command": "cat <