sigs.k8s.io/cluster-api-provider-azure@v1.14.3/test/e2e/data/infrastructure-azure/v1beta1/cluster-template-md-remediation/mhc.yaml (about)

     1  ---
     2  # MachineHealthCheck object with
     3  # - a selector that targets all the machines with label e2e.remediation.label=""
     4  # - unhealthyConditions triggering remediation after 10s the condition is set
     5  apiVersion: cluster.x-k8s.io/v1beta1
     6  kind: MachineHealthCheck
     7  metadata:
     8    name: "${CLUSTER_NAME}-mhc-0"
     9  spec:
    10    clusterName: "${CLUSTER_NAME}"
    11    maxUnhealthy: 100%
    12    selector:
    13      matchLabels:
    14        e2e.remediation.label: ""
    15    unhealthyConditions:
    16      - type: e2e.remediation.condition
    17        status: "False"
    18        timeout: 10s