Skip to content

Commit 7e6ed5b

Browse files
committed
add tuning for liveness/readiness probe for operator and webhook pods
1 parent 06aca81 commit 7e6ed5b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

kubernetes/charts/weblogic-operator/templates/_operator-dep.tpl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,14 @@ spec:
171171
livenessProbe:
172172
exec:
173173
command: ["/operator/livenessProbe.sh"]
174-
initialDelaySeconds: 40
175-
periodSeconds: 10
176-
failureThreshold: 5
174+
initialDelaySeconds: {{ .livenessProbeInitialDelaySeconds | default 40 }}
175+
periodSeconds: {{ .livenessProbePeriodSeconds | default 10 }}
176+
failureThreshold: {{ .livenessProbeFailureThreshold | default 5 }}
177177
readinessProbe:
178178
exec:
179179
command: ["/operator/readinessProbe.sh"]
180-
initialDelaySeconds: 2
181-
periodSeconds: 10
180+
initialDelaySeconds: {{ .readinessProbeInitialDelaySeconds | default 2 }}
181+
periodSeconds: {{ .readinessProbePeriodSeconds | default 10 }}
182182
{{- end }}
183183
{{- if .elkIntegrationEnabled }}
184184
- name: "logstash"
@@ -430,13 +430,13 @@ spec:
430430
livenessProbe:
431431
exec:
432432
command: ["/operator/livenessProbe.sh"]
433-
initialDelaySeconds: 40
434-
periodSeconds: 5
433+
initialDelaySeconds: {{ .livenessProbeInitialDelaySeconds | default 40 }}
434+
periodSeconds: {{ .livenessProbePeriodSeconds | default 5 }}
435435
readinessProbe:
436436
exec:
437437
command: ["/operator/readinessProbe.sh"]
438-
initialDelaySeconds: 2
439-
periodSeconds: 10
438+
initialDelaySeconds: {{ .readinessProbeInitialDelaySeconds | default 2 }}
439+
periodSeconds: {{ .readinessProbePeriodSeconds | default 10 }}
440440
{{- end }}
441441
{{- if .elkIntegrationEnabled }}
442442
- name: "logstash"

0 commit comments

Comments
 (0)