diff --git a/charts/kube-ovn/templates/controller-deploy.yaml b/charts/kube-ovn/templates/controller-deploy.yaml index 862ccbfd842..51e4dc6b1e4 100644 --- a/charts/kube-ovn/templates/controller-deploy.yaml +++ b/charts/kube-ovn/templates/controller-deploy.yaml @@ -172,7 +172,7 @@ spec: - --port=10660 - --tls={{- .Values.func.SECURE_SERVING }} periodSeconds: 3 - timeoutSeconds: 1 + timeoutSeconds: 5 livenessProbe: exec: command: @@ -182,7 +182,7 @@ spec: initialDelaySeconds: 300 periodSeconds: 7 failureThreshold: 5 - timeoutSeconds: 1 + timeoutSeconds: 5 resources: requests: {{- if .Release.IsUpgrade }} diff --git a/charts/kube-ovn/templates/monitor-deploy.yaml b/charts/kube-ovn/templates/monitor-deploy.yaml index 226ca31f349..01b2191d735 100644 --- a/charts/kube-ovn/templates/monitor-deploy.yaml +++ b/charts/kube-ovn/templates/monitor-deploy.yaml @@ -113,7 +113,7 @@ spec: - /kube-ovn/kube-ovn-healthcheck - --port=10661 - --tls={{- .Values.func.SECURE_SERVING }} - timeoutSeconds: 1 + timeoutSeconds: 5 readinessProbe: failureThreshold: 3 initialDelaySeconds: 30 @@ -124,7 +124,7 @@ spec: - /kube-ovn/kube-ovn-healthcheck - --port=10661 - --tls={{- .Values.func.SECURE_SERVING }} - timeoutSeconds: 1 + timeoutSeconds: 5 nodeSelector: kubernetes.io/os: "linux" kube-ovn/role: "master" diff --git a/charts/kube-ovn/templates/ovncni-ds.yaml b/charts/kube-ovn/templates/ovncni-ds.yaml index 88e96942bc2..0b4184796d2 100644 --- a/charts/kube-ovn/templates/ovncni-ds.yaml +++ b/charts/kube-ovn/templates/ovncni-ds.yaml @@ -163,7 +163,7 @@ spec: - /kube-ovn/kube-ovn-healthcheck - --port=10665 - --tls={{- .Values.func.SECURE_SERVING }} - timeoutSeconds: 1 + timeoutSeconds: 5 livenessProbe: failureThreshold: 3 initialDelaySeconds: 30 @@ -174,7 +174,7 @@ spec: - /kube-ovn/kube-ovn-healthcheck - --port=10665 - --tls={{- .Values.func.SECURE_SERVING }} - timeoutSeconds: 1 + timeoutSeconds: 5 resources: requests: {{- if .Release.IsUpgrade }} diff --git a/cmd/health_check/health_check.go b/cmd/health_check/health_check.go index 45e59382768..1017578682c 100644 --- a/cmd/health_check/health_check.go +++ b/cmd/health_check/health_check.go @@ -51,7 +51,7 @@ func CmdMain() { } else { addr = "tcp://" + addr } - if err := util.DialTCP(addr, 100*time.Millisecond, false); err != nil { + if err := util.DialTCP(addr, time.Second, false); err != nil { util.LogFatalAndExit(err, "failed to probe the socket") } } diff --git a/dist/images/install.sh b/dist/images/install.sh index 9d5cb7f38cf..1e8ee72ea98 100755 --- a/dist/images/install.sh +++ b/dist/images/install.sh @@ -4161,7 +4161,7 @@ spec: - --port=10660 - --tls=${SECURE_SERVING} periodSeconds: 3 - timeoutSeconds: 1 + timeoutSeconds: 5 livenessProbe: exec: command: @@ -4171,7 +4171,7 @@ spec: initialDelaySeconds: 300 periodSeconds: 7 failureThreshold: 5 - timeoutSeconds: 1 + timeoutSeconds: 5 resources: requests: cpu: 200m @@ -4349,7 +4349,7 @@ spec: - /kube-ovn/kube-ovn-healthcheck - --port=10665 - --tls=${SECURE_SERVING} - timeoutSeconds: 1 + timeoutSeconds: 5 readinessProbe: failureThreshold: 3 periodSeconds: 7 @@ -4359,7 +4359,7 @@ spec: - /kube-ovn/kube-ovn-healthcheck - --port=10665 - --tls=${SECURE_SERVING} - timeoutSeconds: 1 + timeoutSeconds: 5 resources: requests: cpu: 100m @@ -4647,7 +4647,7 @@ spec: - /kube-ovn/kube-ovn-healthcheck - --port=10661 - --tls=${SECURE_SERVING} - timeoutSeconds: 1 + timeoutSeconds: 5 readinessProbe: failureThreshold: 3 initialDelaySeconds: 30 @@ -4658,7 +4658,7 @@ spec: - /kube-ovn/kube-ovn-healthcheck - --port=10661 - --tls=${SECURE_SERVING} - timeoutSeconds: 1 + timeoutSeconds: 5 nodeSelector: kubernetes.io/os: "linux" kube-ovn/role: "master"