Example to Configure Health Rule Condition

This example outlines how to define a health rule that triggers based on CPU utilization and evaluates the health of pods within a deployment. The rule evaluates whether at least 30% of pods in a workload meet the following criteria over a 1-minute interval:
  • Critical: The CPU usage or limit > 90%
  • Warning: The CPU usage or limit > 75%
  1. Click Health Rules either in the right pane or the left navigation pane.
  2. Select the context for the health rule as Kubernetes from the dropdown menu.
  3. Click the + icon to create a new health rule.
  4. In the Overview tab, specify the following:
    • Name: cpu used vs limit

    • Enabled: select the checkbox

    • When is this rule enabled? : Always

    • Use data from last: 1 min

    • Wait Time after Violation: 5 mins
  5. On the Affected Entities tab specify the following:
    1. Select Health Rule Type: Workload.
    2. In Select workload type, specify Deployment.
    3. In Select what Deployments this Health Rule affects, select The specified Deployments.
    4. Select Evaluate based on Pod metric.
    5. Select the required deployment from the Available section on the right and move it to the Selected section on the left using the left arrow button.
  6. Specify the Critical Criteria.
  7. Specify the Warning Criteria.
  8. Click Save.