Skip to content

Instantly share code, notes, and snippets.

@minherz
Created January 22, 2021 16:42
Show Gist options
  • Save minherz/2a3ef7092e0ea87833543497e7e61d3c to your computer and use it in GitHub Desktop.
Save minherz/2a3ef7092e0ea87833543497e7e61d3c to your computer and use it in GitHub Desktop.
call Kubernetes API get nodes
resp = requests.get(url='https://kubernetes.default.svc/api/v1/nodes/' + node_name,
headers={'Authorization': 'Bearer ' + auth_token}, verify=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment