From e2e3b4f975068d5690e2939b8082547975119353 Mon Sep 17 00:00:00 2001 From: Oilbeater Date: Tue, 14 Nov 2023 11:34:02 +0800 Subject: [PATCH] fix kube-ovn-monitor probe (#3409) Signed-off-by: oilbeater --- charts/templates/monitor-deploy.yaml | 28 ++++++++++++++-------------- dist/images/install.sh | 28 ++++++++++++++-------------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/charts/templates/monitor-deploy.yaml b/charts/templates/monitor-deploy.yaml index b2d2594aa1c..cbdecba620d 100644 --- a/charts/templates/monitor-deploy.yaml +++ b/charts/templates/monitor-deploy.yaml @@ -90,22 +90,22 @@ spec: name: kube-ovn-tls - mountPath: /var/log/kube-ovn name: kube-ovn-log - readinessProbe: - exec: - command: - - cat - - /var/run/ovn/ovn-controller.pid - periodSeconds: 10 - timeoutSeconds: 45 livenessProbe: - exec: - command: - - cat - - /var/run/ovn/ovn-controller.pid + failureThreshold: 3 + initialDelaySeconds: 30 + periodSeconds: 7 + successThreshold: 1 + tcpSocket: + port: 10661 + timeoutSeconds: 3 + readinessProbe: + failureThreshold: 3 initialDelaySeconds: 30 - periodSeconds: 10 - failureThreshold: 5 - timeoutSeconds: 45 + periodSeconds: 7 + successThreshold: 1 + tcpSocket: + port: 10661 + timeoutSeconds: 3 nodeSelector: kubernetes.io/os: "linux" kube-ovn/role: "master" diff --git a/dist/images/install.sh b/dist/images/install.sh index fceac626a97..b20502be7c5 100755 --- a/dist/images/install.sh +++ b/dist/images/install.sh @@ -4463,22 +4463,22 @@ spec: name: kube-ovn-tls - mountPath: /var/log/kube-ovn name: kube-ovn-log - readinessProbe: - exec: - command: - - cat - - /var/run/ovn/ovn-controller.pid - periodSeconds: 10 - timeoutSeconds: 45 livenessProbe: - exec: - command: - - cat - - /var/run/ovn/ovn-controller.pid + failureThreshold: 3 initialDelaySeconds: 30 - periodSeconds: 10 - failureThreshold: 5 - timeoutSeconds: 45 + periodSeconds: 7 + successThreshold: 1 + tcpSocket: + port: 10661 + timeoutSeconds: 3 + readinessProbe: + failureThreshold: 3 + initialDelaySeconds: 30 + periodSeconds: 7 + successThreshold: 1 + tcpSocket: + port: 10661 + timeoutSeconds: 3 nodeSelector: kubernetes.io/os: "linux" kube-ovn/role: "master"