Skip to content

Instantly share code, notes, and snippets.

@PatrickLang
Last active August 14, 2020 11:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save PatrickLang/f4b90c4f9cb53fdf31910595daa29b30 to your computer and use it in GitHub Desktop.
Save PatrickLang/f4b90c4f9cb53fdf31910595daa29b30 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