Skip to content

Commit c2a7862

Browse files
committed
Added machinehealthcheck to cluster-template-machinepool
1 parent 3db3b18 commit c2a7862

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

templates/cluster-template-machinepool.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,21 @@ spec:
111111
name: '{{ ds.meta_data.local_hostname }}'
112112
kubeletExtraArgs:
113113
cloud-provider: aws
114+
---
115+
apiVersion: cluster.x-k8s.io/v1beta1
116+
kind: MachineHealthCheck
117+
metadata:
118+
name: "${CLUSTER_NAME}-kcp-unhealthy-5m"
119+
spec:
120+
clusterName: "${CLUSTER_NAME}"
121+
maxUnhealthy: 100%
122+
selector:
123+
matchLabels:
124+
cluster.x-k8s.io/control-plane: ""
125+
unhealthyConditions:
126+
- type: Ready
127+
status: Unknown
128+
timeout: 300s
129+
- type: Ready
130+
status: "False"
131+
timeout: 300s

0 commit comments

Comments
 (0)