Created
January 22, 2021 16:42
-
-
Save minherz/2a3ef7092e0ea87833543497e7e61d3c to your computer and use it in GitHub Desktop.
call Kubernetes API get nodes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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