CKAD Daily Study Notes π
Todays Focus: Core API Objects
Pod Design Patterns
- StatefulSet vs Deployment: When to use each
- InitContainers: Setup tasks before app container
- Multi-container pods: Design patterns and use cases
Essential Commands
# Pod creation and inspection
kubectl run nginx --image=nginx --port=80
kubectl get pods -o wide
kubectl describe pod <pod-name>
kubectl exec -it <pod> -- /bin/bash
kubectl logs <pod>
# Deployment management
kubectl create deployment web --image=nginx --replicas=3
kubectl set image deployment/web nginx=nginx:1.20
kubectl rollout status deployment/web
kubectl rollout history deployment/web
kubectl rollout undo deployment/web
Quiz Yourself
- What happens when you delete a Pod in a Deployment?
- How do you force a deployment rollout?
- What's the difference between ReadinessProbe and LivenessProbe?
- How do you mount a ConfigMap as a volume?
Exam Strategy
- 2 hours for 19 questions = ~6 min per question
- Use imperative commands when possible (faster than YAML)
- Master kubectl shortcuts:
alias k=kubectl
export do="--dry-run=client -o yaml"
k run pod1 --image=nginx $do > pod.yaml
Today's Goal
- Practice 5 Pod-related scenarios
- Time yourself on each
- Review failures
You've got this! Keep grinding. πͺ
Top comments (0)