Skip to content

Commit

Permalink
Increase timeout on liveness/readiness probes. (#4789)
Browse files Browse the repository at this point in the history
Default is 1s, which is sometimes not enough on a CPU-constrained node.
  • Loading branch information
fasaxc authored Jul 29, 2021
1 parent 3cde0a2 commit cb0bfd4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ spec:
periodSeconds: 10
initialDelaySeconds: 10
failureThreshold: 6
timeoutSeconds: 10
readinessProbe:
exec:
command:
Expand Down Expand Up @@ -112,6 +113,7 @@ spec:
periodSeconds: 10
initialDelaySeconds: 10
failureThreshold: 6
timeoutSeconds: 10
readinessProbe:
exec:
command:
Expand Down
2 changes: 2 additions & 0 deletions _includes/charts/calico/templates/calico-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,7 @@ spec:
periodSeconds: 10
initialDelaySeconds: 10
failureThreshold: 6
timeoutSeconds: 10
readinessProbe:
{{- if eq .Values.network "calico" }}
exec:
Expand All @@ -390,6 +391,7 @@ spec:
- -felix-ready
{{- end }}
periodSeconds: 10
timeoutSeconds: 10
volumeMounts:
# For maintaining CNI plugin API credentials.
- mountPath: /host/etc/cni/net.d
Expand Down
2 changes: 2 additions & 0 deletions _includes/charts/calico/templates/calico-typha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ spec:
host: localhost
periodSeconds: 30
initialDelaySeconds: 30
timeoutSeconds: 10
securityContext:
runAsNonRoot: true
allowPrivilegeEscalation: false
Expand All @@ -134,6 +135,7 @@ spec:
port: 9098
host: localhost
periodSeconds: 10
timeoutSeconds: 10

---

Expand Down

0 comments on commit cb0bfd4

Please sign in to comment.