Exercises: Docker and Kubernetes
Exercises: Docker and Kubernetes Concept Drills Explain image vs container. Explain volume vs bind mount. Explain Kubernetes Deployment vs Service. Explain readiness vs liveness pr
Exercises: Docker and Kubernetes
Concept Drills
- Explain image vs container.
- Explain volume vs bind mount.
- Explain Kubernetes Deployment vs Service.
- Explain readiness vs liveness probe.
Build Drills
- Write a Dockerfile for an API.
- Create a multi-stage Docker build.
- Create Docker Compose with API, database, and cache.
- Create Kubernetes manifests for API and database.
- Add ConfigMap and Secret.
- Add resource requests and limits.
Failure Drills
- Break the health check and observe behavior.
- Run out of memory with low limits.
- Misconfigure environment variables and debug.
- Simulate a crashed pod.
Output
- Dockerfile.
- Docker Compose file.
- Kubernetes manifests.
- Deployment notes.