add livenessProbe for scheduler-estimator

Signed-off-by: AllenZMC <zhongming.chang@daocloud.io>
This commit is contained in:
AllenZMC 2022-05-26 23:49:46 +08:00
parent 05101ebfdb
commit 0dcb8e2ad6
2 changed files with 18 additions and 0 deletions

View File

@ -26,6 +26,15 @@ spec:
- /bin/karmada-scheduler-estimator
- --kubeconfig=/etc/{{member_cluster_name}}-kubeconfig
- --cluster-name={{member_cluster_name}}
livenessProbe:
httpGet:
path: /healthz
port: 10351
scheme: HTTP
failureThreshold: 3
initialDelaySeconds: 15
periodSeconds: 15
timeoutSeconds: 5
volumeMounts:
- name: member-kubeconfig
subPath: {{member_cluster_name}}-kubeconfig

View File

@ -43,6 +43,15 @@ spec:
- /bin/karmada-scheduler-estimator
- --kubeconfig=/etc/{{ $clusterName }}-kubeconfig
- --cluster-name={{ $clusterName }}
livenessProbe:
httpGet:
path: /healthz
port: 10351
scheme: HTTP
failureThreshold: 3
initialDelaySeconds: 15
periodSeconds: 15
timeoutSeconds: 5
volumeMounts:
- name: member-kubeconfig
subPath: {{ $clusterName }}-kubeconfig