Course → 2 · CI/CD & platforms → Kubernetes
2 · CI/CD & platforms
Theory · Kubernetes
22 min · Module 7 · Theory
How to study this topic
- Read the theory below (concepts, bullets, and shell/YAML examples).
- Try the Exam pool and Book quizzes in this module.
- After each quiz, use Show answer on every question to review.
Kubernetes
K8s orchestrates containers across nodes. Declarative manifests describe desired state; controllers reconcile. Use Deployments for stateless apps, StatefulSets for stable identity, Jobs for batch work.
- Probes: liveness (restart), readiness (traffic), startup (slow apps).
- Resources: requests/limits for CPU and memory — avoid OOM kills.
- RBAC: restrict who can apply manifests in each namespace.
Shell, YAML & config examples
kubectl apply -f deployment.yaml
kubectl get pods -l app=api
kubectl describe pod api-xxx
kubectl logs api-xxx -f
kubectl rollout status deployment/api
Hands-on practice: /lab/