Added machinehealthcheck to cluster-template-machinepool
@@ -111,3 +111,21 @@ spec:
name: '{{ ds.meta_data.local_hostname }}'
kubeletExtraArgs:
cloud-provider: aws
+---
+apiVersion: cluster.x-k8s.io/v1beta1
+kind: MachineHealthCheck
+metadata:
+ name: "${CLUSTER_NAME}-kcp-unhealthy-5m"
+spec:
+ clusterName: "${CLUSTER_NAME}"
+ maxUnhealthy: 100%
+ selector:
+ matchLabels:
+ cluster.x-k8s.io/control-plane: ""
+ unhealthyConditions:
+ - type: Ready
+ status: Unknown
+ timeout: 300s
+ - type: Ready
+ status: "False"
+ timeout: 300s
\ No newline at end of file
