Kubernetes debug commands

  • Kubernetes error messages
kubectl get events -n kube-system
  • Kubernetes pods logs
stern prox -n kube-system
  • Debug with busybox
kubectl run --generator=run-pod/v1 -i --tty busybox --image=busybox --restart=Never -- sh
Previous
Next