This module focuses on Kubernetes Pods, the most fundamental unit of deployment in Kubernetes. Understanding Pods thoroughly is crucial for the Certified Kubernetes Application Developer (CKAD) exam and for real-world Kubernetes deployments.
A comprehensive article covering everything you need to know about Kubernetes Pods:
This module includes several visual aids to enhance understanding:
# Create a Pod
kubectl run nginx --image=nginx
# Create a Pod from a YAML file
kubectl create -f pod.yaml
# Get information about Pods
kubectl get pods
kubectl get pod nginx-pod -o yaml
kubectl describe pod nginx-pod
# Delete a Pod
kubectl delete pod nginx-pod
kubectl delete -f pod.yaml
# Get Pod logs
kubectl logs nginx-pod
kubectl logs -f nginx-pod # Stream logs
# Execute commands in a Pod
kubectl exec -it nginx-pod -- /bin/bash