Skip to content

Commit 7268320

Browse files
committed
Override startupProbe parameters for destination and injector components
1 parent 6303ff3 commit 7268320

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

charts/linkerd-control-plane/templates/destination.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,9 @@ spec:
344344
- {{- include "partials.proxy-init" $tree | indent 8 | trimPrefix (repeat 7 " ") }}
345345
{{ end -}}
346346
{{- if $tree.Values.proxy.nativeSidecar }}
347+
{{- $_ := set $tree.Values.proxy "startupProbeInitialDelaySeconds" 20 }}
348+
{{- $_ := set $tree.Values.proxy "startupProbePeriodSeconds" 5 }}
349+
{{- $_ := set $tree.Values.proxy "startupProbeFailureThreshold" 20 }}
347350
- {{- include "partials.proxy" $tree | indent 8 | trimPrefix (repeat 7 " ") }}
348351
{{ end -}}
349352
{{- if .Values.priorityClassName -}}

charts/linkerd-control-plane/templates/proxy-injector.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ spec:
130130
- {{- include "partials.proxy-init" $tree | indent 8 | trimPrefix (repeat 7 " ") }}
131131
{{ end -}}
132132
{{- if $tree.Values.proxy.nativeSidecar }}
133+
{{- $_ := set $tree.Values.proxy "startupProbeInitialDelaySeconds" 20 }}
134+
{{- $_ := set $tree.Values.proxy "startupProbePeriodSeconds" 5 }}
135+
{{- $_ := set $tree.Values.proxy "startupProbeFailureThreshold" 20 }}
133136
- {{- include "partials.proxy" $tree | indent 8 | trimPrefix (repeat 7 " ") }}
134137
{{ end -}}
135138
{{- if .Values.priorityClassName -}}

charts/partials/templates/_proxy.tpl

+3-3
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ startupProbe:
173173
httpGet:
174174
path: /ready
175175
port: {{.Values.proxy.ports.admin}}
176-
initialDelaySeconds: 0
177-
periodSeconds: 1
178-
failureThreshold: 120
176+
initialDelaySeconds: {{.Values.proxy.startupProbeInitialDelaySeconds | default 0}}
177+
periodSeconds: {{.Values.proxy.startupProbePeriodSeconds | default 1}}
178+
failureThreshold: {{.Values.proxy.startupProbeFailureThreshold | default 120}}
179179
{{- end }}
180180
{{- if .Values.proxy.resources }}
181181
{{ include "partials.resources" .Values.proxy.resources }}

0 commit comments

Comments
 (0)