From 12625f509f36d66aa4f4a6d1bd3845fb263fb5e8 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 2c25e6319d5..3fe092a16be 100755 --- a/dist/images/install.sh +++ b/dist/images/install.sh @@ -4451,22 +4451,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"