Docker & Kubernetes Deployment
4 Topics
1
Dockerizing a Spring Boot Application — Optimal Dockerfile
Using layered JAR builds to optimize build caches and minimize run times image sizes.
Spring Boot deployment optimization. Expect questions on multi-stage build design, layertools extraction mechanics, caching layers, and running containers securely as non-root users.
2
Docker Compose for Local Development — App + DB + Redis + Kafka
Orchestrating all dependencies locally with a single command.
Local infrastructure orchestration. Expect questions on service networking, container start ordering, profile-based configuration injection, and volume data persistence.
3
Deploying to Kubernetes — Deployment, Service, ConfigMap, Secret
Writing full YAML specs to configure and expose Spring Boot apps inside clusters.
Kubernetes application manifests design. Expect questions on mapping Spring properties to ConfigMaps, mounting secrets securely, and exposure configurations.
4
Health Probes, Resource Limits, and Rolling Updates in Kubernetes
Mapping Actuator health endpoints to liveness/readiness probes, and tuning CPU/memory boundaries.
JVM resource boundaries inside container orchestration. Expect questions on configuring MaxRAMPercentage, liveness vs readiness probes, graceful shutdown hooks, and rollout configurations.