Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 766 Bytes

TROUBLESHOOTING.md

File metadata and controls

24 lines (13 loc) · 766 Bytes

##Google Cloud SDK Troubleshooting

If kubectl is not connecting to your cluster or showing pods trying getting the credentials:

gcloud container clusters get-credentials

##Kubernetes Troubleshooting

The most important tool to know for debugging problems is the describe resource command. It can be used to describe any Kubernetes resource.

kubectl describe pod helloworld-service-v1-119527584-jwfzh

kubectl describe service helloworld-service

kubectl top can be used to see resource utilization. A very common problem is the pod was not able to be scheduled.

kubectl top nodes

kubectl top pods

View the logs of a Pod by finding the full pod name and specify the main container, i.e.:

kubectl logs guestbook-ui-1872113123-1lw81 -c guestbook-ui