domino_admin_toolkit.checks.test_kube_events module
- domino_admin_toolkit.checks.test_kube_events.log_events(events, category)
- domino_admin_toolkit.checks.test_kube_events.test_kube_cluster_events(get_good_cluster_events, get_warning_cluster_events, event_type)
- Description:
Checks all Kubernetes events, highlighting events that are not classified as type ‘Normal’.
- Result:
Logs good and bad events based on their classification.
- domino_admin_toolkit.checks.test_kube_events.test_kube_critical_pod_events(get_bad_pod_events)
- Description:
Filters Kubernetes Pod events from the last two weeks and identifies critical events where Pods were OOMKilled.
- Result:
Logs events categorized as “Critical” for Pods that were OOMKilled. Asserts that there are no OOMKilled events, indicating no critical memory issues in the cluster.
- domino_admin_toolkit.checks.test_kube_events.test_kube_pod_events(get_bad_pod_events, get_good_pod_events, event_type)
- Description:
Checks Kubernetes Pod events for readiness and liveness probe failures. Filters events from the last two weeks.
- Result:
Logs categorized as “Good” for events without probe failures and “Bad” for events with multiple probe failures. Asserts that there are no events with multiple probe failures, indicating potential issues with Pod health.