Kubernetses Interview Questions:
Kuberneste interview questions: 1).๐ฅ Kubernetes Critical Interview Q&A (with Commands) ⚙️ 1. Pod Crash / Debugging Q: Pod is crashing. How do you troubleshoot? kubectl get pods kubectl describe pod kubectl logs kubectl logs --previous kubectl exec -it -- /bin/sh kubectl get events --sort-by=.metadata.creationTimestamp ⚙️ 2. Pod Pending Issue Q: Pod stuck in Pending state kubectl describe pod kubectl get nodes kubectl describe node kubectl get pvc kubectl describe pvc ⚙️ 3. Desired Pods ≠ Running Pods Q: Desired = 5, Running = 3 kubectl get deployment kubectl describe deployment kubectl get rs kubectl get pods -o wide kubectl describe pod kubectl get nodes kubectl top nodes ๐ 4. Service Not Reachable Q: Service is not accessible kubectl get svc kubectl describe svc kubectl get endpoints kubectl get pods -o wide kubectl exec -it -- curl kubectl exec -it -- nslookup ๐ 5. Networking Issue Between Pods kubectl exec -it -- ping kubectl exec -it -- curl ...