How to troubleshoot kube clusters?

849    Asked by KevinRose in Devops , Asked on Feb 18, 2020
Answered by Kevin Rose

An entire kubernetes troubleshooting flowchart can be referred and downloaded via below url -

https://learnk8s.io/a/troubleshooting-kubernetes.pdf

Basically there are 3 service components which need to be defined to deploy an application stack/microservices within the kube cluster.

Deployment, Service & Ingress

One should be very careful in assigning ports to services, like same ports should not be assigned.

Refer below flow for summary for how to connect the ports-


Most of time the issue with the pods itself, need to check whether the pods are running fine or not, use below command to check

# kubectl get pods

Below are some useful commands which can be used to identify where and what went wrong.

#kubectl logs

#kubectl describe pod

#kubectl get pod

#kubectl exec -ti bash



Your Answer

Interviews

Parent Categories