Skip to content

Commit 00e18a7

Browse files
65278wikkyk
authored andcommitted
v1alpha2: update mhcs examples
1 parent 0ea4001 commit 00e18a7

2 files changed

Lines changed: 26 additions & 20 deletions

File tree

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
---
2-
apiVersion: cluster.x-k8s.io/v1beta1
2+
apiVersion: cluster.x-k8s.io/v1beta2
33
kind: MachineHealthCheck
44
metadata:
55
name: "${CLUSTER_NAME}-control-plane-unhealthy-5m"
66
spec:
77
clusterName: "${CLUSTER_NAME}"
8-
maxUnhealthy: 100%
9-
nodeStartupTimeout: 15m
108
selector:
119
matchLabels:
1210
cluster.x-k8s.io/control-plane: ""
13-
unhealthyConditions:
14-
- type: Ready
15-
status: Unknown
16-
timeout: 300s
17-
- type: Ready
18-
status: "False"
19-
timeout: 300s
11+
checks:
12+
nodeStartupTimeoutSeconds: 900
13+
unhealthyNodeConditions:
14+
- type: Ready
15+
status: Unknown
16+
timeoutSeconds: 300
17+
- type: Ready
18+
status: "False"
19+
timeoutSeconds: 300
20+
remediation:
21+
triggerIf:
22+
unhealthyLessThanOrEqualTo: "100%"
Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
---
2-
apiVersion: cluster.x-k8s.io/v1beta1
2+
apiVersion: cluster.x-k8s.io/v1beta2
33
kind: MachineHealthCheck
44
metadata:
55
name: "${CLUSTER_NAME}-worker-unhealthy-5m"
66
spec:
77
clusterName: "${CLUSTER_NAME}"
8-
maxUnhealthy: 40%
9-
nodeStartupTimeout: 15m
108
selector:
119
matchLabels:
1210
node-role.kubernetes.io/node: ""
13-
unhealthyConditions:
14-
- type: Ready
15-
status: Unknown
16-
timeout: 300s
17-
- type: Ready
18-
status: "False"
19-
timeout: 300s
11+
checks:
12+
nodeStartupTimeoutSeconds: 900
13+
unhealthyNodeConditions:
14+
- type: Ready
15+
status: Unknown
16+
timeoutSeconds: 300
17+
- type: Ready
18+
status: "False"
19+
timeoutSeconds: 300
20+
remediation:
21+
triggerIf:
22+
unhealthyLessThanOrEqualTo: "40%"

0 commit comments

Comments
 (0)