Skip to content

Instantly share code, notes, and snippets.

@mvidalgarcia
Created May 18, 2021 08:52
Show Gist options
  • Save mvidalgarcia/c0a8663e482fda97e3529be587aa6602 to your computer and use it in GitHub Desktop.
Save mvidalgarcia/c0a8663e482fda97e3529be587aa6602 to your computer and use it in GitHub Desktop.
from kubernetes import client
from kubernetes import config as k8s_config
k8s_config.load_incluster_config()
api_configuration = client.Configuration()
api_configuration.verify_ssl = False
api_client = client.CoreV1Api()
api_client.list_node()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment