File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -408,6 +408,15 @@ spec:
408408 path : /metrics
409409 port : metrics
410410 {{- end }}
411+ {{- if .Values.metrics.customStartupProbe }}
412+ startupProbe : {{- include "common.tplvalues.render" (dict "value" .Values.metrics.customStartupProbe "context" $) | nindent 12 }}
413+ {{- else if .Values.metrics.startupProbe.enabled }}
414+ startupProbe : {{- include "common.tplvalues.render" (dict "value" (omit .Values.metrics.startupProbe "enabled") "context" $) | nindent 12 }}
415+ httpGet :
416+ path : /metrics
417+ port : metrics
418+ {{- end }}
419+ {{- end }}
411420 {{- if .Values.metrics.resources }}
412421 resources : {{- toYaml .Values.metrics.resources | nindent 12 }}
413422 {{- else if ne .Values.metrics.resourcesPreset "none" }}
Original file line number Diff line number Diff line change @@ -1156,3 +1156,16 @@ metrics:
11561156 enabled : true
11571157 initialDelaySeconds : 5
11581158 timeoutSeconds : 3
1159+ # # @param metrics.customStartupProbe Override default metrics startup probe
1160+ # #
1161+ customStartupProbe : {}
1162+ # # NGINX metrics containers' startup probe.
1163+ # # ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
1164+ # # @param metrics.startupProbe.enabled Enable startupProbe
1165+ # # @param metrics.startupProbe.initialDelaySeconds Initial delay seconds for startupProbe
1166+ # # @param metrics.startupProbe.timeoutSeconds Timeout seconds for startupProbe
1167+ # #
1168+ startupProbe :
1169+ enabled : false
1170+ initialDelaySeconds : 30
1171+ timeoutSeconds : 5
You can’t perform that action at this time.
0 commit comments