Konten utama halaman ini berbahasa Inggris.Terjemahkan halaman ini
Keahlian & teknologi
Docker & Kubernetes roadmap
Learn containers with Docker, then orchestration with Kubernetes, the standard way to deploy modern applications.
- Waktu
- ⏱ 4–6 weeks
- Level
- Intermediate
- Steps
- 5 steps
- Progress
- 0/5 done
The roadmap
Click a step to open the full guide.
Best architecture: a Kubernetes deployment
How traffic and workloads flow through a production cluster.
Kubernetes request path
- DNS
- Cloud load balancer
- Ingress controller (TLS)
- Service
- Pods (Deployment, HPA)
- ConfigMaps / Secrets / volumes
Why it's built this way
- Deployments + HPA keep the right number of healthy pods.
- Ingress handles HTTP routing and TLS.
- Probes, requests and limits on every container.
- GitOps keeps the cluster in sync with Git.
Docker & Kubernetes cheat sheet
The essentials on one screen. Bookmark it for revision.
Docker
| Build | docker build -t app:1.0 . |
|---|---|
| Run | docker run -d -p 8000:8000 app:1.0 |
| List | docker ps / docker images |
| Logs | docker logs -f <container> |
| Shell inside | docker exec -it <container> sh |
| Compose up | docker compose up -d --build |
| Clean up | docker system prune |
kubectl
| Apply | kubectl apply -f k8s/ |
|---|---|
| Pods | kubectl get pods -o wide |
| Describe | kubectl describe pod <name> |
| Logs | kubectl logs -f <pod> |
| Scale | kubectl scale deploy/app --replicas=3 |
| Rollback | kubectl rollout undo deploy/app |
| Port-forward | kubectl port-forward svc/app 8000:80 |
Improve performance
- Use small images (slim/distroless, multi-stage) for faster pulls and starts.
- Set realistic CPU/memory requests so the scheduler packs pods well.
- Autoscale with HPA and the cluster autoscaler.
- Use readiness probes so traffic only reaches warmed-up pods.
- Cache dependencies in CI builds to speed up pipelines.
Security checklist
- Run containers as a non-root user with a read-only filesystem where possible.
- Scan images for vulnerabilities and use trusted, minimal base images.
- Never bake secrets into images; use Kubernetes Secrets or a secrets manager.
- Use RBAC with least privilege and network policies to limit pod-to-pod traffic.
- Keep clusters and images patched; pin image versions.
Most important interview questions
Click a question to see a strong answer. Each step also has its own questions.
1What problem does Kubernetes solve?
Running containers reliably across many machines: scheduling, self-healing, scaling, service discovery, rolling updates and configuration.
2Explain Docker image layers.
Each Dockerfile instruction creates a cached, read-only layer; changing one step rebuilds it and the steps after it.
3Deployment vs StatefulSet?
Deployments are for stateless, interchangeable pods. StatefulSets give pods stable names and storage, for databases and similar stateful apps.
4How do pods find each other?
Through Services, which provide stable DNS names (e.g. api.default.svc.cluster.local) and load-balance across pods.
5When is Kubernetes overkill?
For small apps or teams; managed container services or serverless are simpler and cheaper until you need Kubernetes' flexibility.
Related roadmap
Cloud Engineer
6 steps · 5–7 months · Intermediate
Design, build and run systems on AWS, Azure or Google Cloud.
View roadmap →AWS
6 steps · 6–8 weeks · Intermediate
The most widely used cloud platform.
View roadmap →Backend Developer
6 steps · 5–6 months · Intermediate
Build the APIs, databases and services behind apps.
View roadmap →