In this lab you will use common techniques to troubleshoot issues and debug errors with Kubernetes applications.
-
Deploy a pod and review logs using "kubectl logs" command
-
Run a deployment with a bad image name. Debug deployment to find error
-
Investigate issues with Pods in "Waiting" or "Pending" state
-
Test inter-pod communication (DNS, ping, etc.) by deploying a busybox pod
kubectl run busybox —image=busybox /bin/sh
-
Debug services by inspecting endpoints. https://kubernetes.io/docs/tasks/debug-application-cluster/debug-service
-
Find and view the cluster logs
- api-server
- kube-scheduler
- controller-manager
- kubelet (agent)