Get service endpoints

Show pod IPs backing a Service — diagnose selector mismatch

kubectl get endpoints <svc> -n <ns>

tool
kubectl73 commands
tags
networkdebug

More kubectl commands

  • kubectl get certificate -A -o wide

    See cert-manager Certificate ready status and expiry dates

  • kubectl get pod <pod> -n <ns> -o jsonpath='{.spec.topologySpreadConstraints}'

    Inspect topology spread constraints on a pod

  • kubectl apply -f ./dir/ --prune -l app=<label> -n <ns>

    Apply manifests and remove stale objects matching the label selector

  • kubectl diff -f file.yaml

    Show what would change if you applied this manifest now

  • kubectl get pods -n <ns> -l app=<label> -o name | xargs -I{} kubectl exec {} -n <ns> -- <cmd>

    Run a command in every pod matching a label selector

all 73 kubectl commands