Troubleshoot pods and services (AKS)

On this page (4)
  1. Use kubectl describe to inspect pods and events
  2. Debug using kubectl exec
  3. Inspect services using kubectl
  4. Validate service-to-pod connectivity

Use kubectl describe to inspect pods and events

The command kubectl describe command gives you detailed information about a pod including events.

kubectl get pods -n ai-workloads
kubectl describe pod <pod-name> -n ai-workloads

Debug using kubectl exec

kubectl exec -it <pod-name> -n ai-workloads -- /bin/sh

Inspect services using kubectl

kubectl get service -n ai-workloads
kubectl describe service <service-name> -n ai-workloads
kubectl get endpointslices -l kubernetes.io/service-name=<service-name> -n ai-workloads

Validate service-to-pod connectivity

kubectl get service -n ai-workloads
kubectl describe service inference-api -n ai-workloads
kubectl get endpointslices -l kubernetes.io/service-name=inference-api -n ai-workloads
Found it useful? Share it
LinkedIn