Skip to content

Instantly share code, notes, and snippets.

@larsks
Created September 13, 2021 23:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larsks/accf4d4faf9dc32f96c3c4e010bc63bb to your computer and use it in GitHub Desktop.
Save larsks/accf4d4faf9dc32f96c3c4e010bc63bb to your computer and use it in GitHub Desktop.
from kubernetes import client, config
from openshift import DynamicClient
config.load_incluster_config()
v1 = client.CoreV1Api()
mynode = v1.read_node(os.environ['NODE_NAME'])
print(mynode)
secrets = v1.list_namespaced_secrets('lars-sandbox')
print(secrets)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment