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 0cf8c0f commit c9c2d3c
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 @@ -191,7 +191,7 @@ spec:
- --port=10660
- --tls={{- .Values.func.SECURE_SERVING }}
periodSeconds: 3
timeoutSeconds: 1
timeoutSeconds: 5
livenessProbe:
exec:
command:
Expand All @@ -201,7 +201,7 @@ spec:
initialDelaySeconds: 300
periodSeconds: 7
failureThreshold: 5
timeoutSeconds: 1
timeoutSeconds: 5
resources:
requests:
cpu: {{ index .Values "kube-ovn-controller" "requests" "cpu" }}
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 @@ -130,7 +130,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 @@ -141,7 +141,7 @@ spec:
- /kube-ovn/kube-ovn-healthcheck
- --port=10661
- --tls={{- .Values.func.SECURE_SERVING }}
timeoutSeconds: 1
timeoutSeconds: 5
nodeSelector:
kubernetes.io/os: "linux"
{{- with splitList "=" .Values.MASTER_NODES_LABEL }}
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 @@ -203,7 +203,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 @@ -214,7 +214,7 @@ spec:
- /kube-ovn/kube-ovn-healthcheck
- --port=10665
- --tls={{- .Values.func.SECURE_SERVING }}
timeoutSeconds: 1
timeoutSeconds: 5
resources:
requests:
cpu: {{ index .Values "kube-ovn-cni" "requests" "cpu" }}
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 @@ -4345,7 +4345,7 @@ spec:
- --port=10660
- --tls=${SECURE_SERVING}
periodSeconds: 3
timeoutSeconds: 1
timeoutSeconds: 5
livenessProbe:
exec:
command:
Expand All @@ -4355,7 +4355,7 @@ spec:
initialDelaySeconds: 300
periodSeconds: 7
failureThreshold: 5
timeoutSeconds: 1
timeoutSeconds: 5
resources:
requests:
cpu: 200m
Expand Down Expand Up @@ -4568,7 +4568,7 @@ spec:
- /kube-ovn/kube-ovn-healthcheck
- --port=10665
- --tls=${SECURE_SERVING}
timeoutSeconds: 1
timeoutSeconds: 5
readinessProbe:
failureThreshold: 3
periodSeconds: 7
Expand All @@ -4578,7 +4578,7 @@ spec:
- /kube-ovn/kube-ovn-healthcheck
- --port=10665
- --tls=${SECURE_SERVING}
timeoutSeconds: 1
timeoutSeconds: 5
resources:
requests:
cpu: 100m
Expand Down Expand Up @@ -4909,7 +4909,7 @@ spec:
- /kube-ovn/kube-ovn-healthcheck
- --port=10661
- --tls=${SECURE_SERVING}
timeoutSeconds: 1
timeoutSeconds: 5
readinessProbe:
failureThreshold: 3
initialDelaySeconds: 30
Expand All @@ -4920,7 +4920,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 c9c2d3c

Please sign in to comment.