Skip to content

Instantly share code, notes, and snippets.

@ngotzmann
Created September 13, 2025 07:46
Show Gist options
  • Select an option

  • Save ngotzmann/afbc52d8901505b85923bc411a2f96d7 to your computer and use it in GitHub Desktop.

Select an option

Save ngotzmann/afbc52d8901505b85923bc411a2f96d7 to your computer and use it in GitHub Desktop.
export default async function () {
const config = ansibleConfigLoader.getConfig('./configs/prod.yml');
const k8sGroup = getGroupConfig(config, 'kubernetes');
const ungroupedConfig = getUngroupedConfig(config);
const k8s = new Kubernetes({
config_path: ungroupedConfig.k8s_admin_cert_path
});
describe('Validate that all nodes are healthy', () => {
checkNodeHealth(k8s);
});
describe('Validate that all k8s hosts can ping each other', () => {
checkNodeConnection(k8sGroup, ungroupedConfig);
});
describe('Validate that all pods in kube-system namespace are healthy', () => {
validatePodsHealthInNamespace('kube-system', k8s);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment