Kubernetes Lab 5 - Debugging
Solution
Check STATUS
column for not Ready
Check the description of the deployment
Save logs for a broken podkubectl logs <pod name> -n <namespace> > /home/cloud_user/debug/broken-pod-logs.log
In the description you will see the following is wrong: - Selector and Label names do not match. - The Probe is TCP instead of HTTP Get. - The Service Port is 80 instead of 8080.
To fix probe, can't kubectl edit, need to delete and recreate the deployment
Delete pod
Can also usekubectl replace
Edit yaml, and apply
Verify