Skip to content

Instantly share code, notes, and snippets.

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 samirbehara-zz/76a9dd75876449a741b582a25bd489d4 to your computer and use it in GitHub Desktop.
Save samirbehara-zz/76a9dd75876449a741b582a25bd489d4 to your computer and use it in GitHub Desktop.
def test_kubernetes_master_components_are_healthy(k8s_client):
ret = k8s_client.list_component_status()
# Iterate through the K8s Master components in the cluster and verify if the components are reporting healthy
for item in ret.items:
assert item.conditions[0].type == "Healthy" # Verify status of Scheduler, Controller and Etcd
print("%s\t%s\t" % (item.metadata.name, item.conditions[0].type))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment