Skip to content

Instantly share code, notes, and snippets.

@kanedafromparis
Forked from PatrickLang/README.md
Created August 14, 2020 11:32
Show Gist options
  • Save kanedafromparis/423edcc1fc5d3fe1f2d5384c3b71ce17 to your computer and use it in GitHub Desktop.
Save kanedafromparis/423edcc1fc5d3fe1f2d5384c3b71ce17 to your computer and use it in GitHub Desktop.
Kubelet debugging snippets

Reaching kubelet API endpoints

If you have a valid kubeconfig, then you can proxy through the apiserver to reach the kubelet's API on each node

kubectl proxy

Getting metrics summary

curl http://localhost:8001/api/v1/nodes/<nodename>/proxy/stats/summary | jq

Getting configuration of a running kubelet

curl http://localhost:8001/api/v1/nodes/<nodename>/proxy/configz | jq 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment