Skip to content

Instantly share code, notes, and snippets.

@radimih
Created February 7, 2024 11:24
Show Gist options
  • Save radimih/647aba15ae60048e167e1f4c5cbd09ce to your computer and use it in GitHub Desktop.
Save radimih/647aba15ae60048e167e1f4c5cbd09ce to your computer and use it in GitHub Desktop.
Отладка в Kubernetes

Отладка в Kubernetes

Отладка pod

kubectl debug \
  $(kubectl -n NAMESPACE get pods --selector LABEL=VALUE --output jsonpath='{.items[0].metadata.name}') \
  -n NAMESPACE -it --share-processes \
  --image alpine \
  --copy-to qqq-debug
kubectl -n NAMESPACE delete pod qqq-debug

Отладка node

kubectl debug node/NODENAME -it --image=alpine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment