Skip to content

Commit

Permalink
increase health probe timeout (#4397)
Browse files Browse the repository at this point in the history
Signed-off-by: zhangzujian <[email protected]>
  • Loading branch information
zhangzujian committed Aug 13, 2024
1 parent 909991a commit d4692df
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions charts/kube-ovn/templates/controller-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ spec:
- --port=10660
- --tls={{- .Values.func.SECURE_SERVING }}
periodSeconds: 3
timeoutSeconds: 1
timeoutSeconds: 5
livenessProbe:
exec:
command:
Expand All @@ -182,7 +182,7 @@ spec:
initialDelaySeconds: 300
periodSeconds: 7
failureThreshold: 5
timeoutSeconds: 1
timeoutSeconds: 5
resources:
requests:
{{- if .Release.IsUpgrade }}
Expand Down
4 changes: 2 additions & 2 deletions charts/kube-ovn/templates/monitor-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions charts/kube-ovn/templates/ovncni-ds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion cmd/health_check/health_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
12 changes: 6 additions & 6 deletions dist/images/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4161,7 +4161,7 @@ spec:
- --port=10660
- --tls=${SECURE_SERVING}
periodSeconds: 3
timeoutSeconds: 1
timeoutSeconds: 5
livenessProbe:
exec:
command:
Expand All @@ -4171,7 +4171,7 @@ spec:
initialDelaySeconds: 300
periodSeconds: 7
failureThreshold: 5
timeoutSeconds: 1
timeoutSeconds: 5
resources:
requests:
cpu: 200m
Expand Down Expand Up @@ -4349,7 +4349,7 @@ spec:
- /kube-ovn/kube-ovn-healthcheck
- --port=10665
- --tls=${SECURE_SERVING}
timeoutSeconds: 1
timeoutSeconds: 5
readinessProbe:
failureThreshold: 3
periodSeconds: 7
Expand All @@ -4359,7 +4359,7 @@ spec:
- /kube-ovn/kube-ovn-healthcheck
- --port=10665
- --tls=${SECURE_SERVING}
timeoutSeconds: 1
timeoutSeconds: 5
resources:
requests:
cpu: 100m
Expand Down Expand Up @@ -4647,7 +4647,7 @@ spec:
- /kube-ovn/kube-ovn-healthcheck
- --port=10661
- --tls=${SECURE_SERVING}
timeoutSeconds: 1
timeoutSeconds: 5
readinessProbe:
failureThreshold: 3
initialDelaySeconds: 30
Expand All @@ -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"
Expand Down

0 comments on commit d4692df

Please sign in to comment.