added liveness and readiness probes to debug container partials template (#11308)

Signed-off-by: Alen Haric <aharic88@gmail.com>
This commit is contained in:
deusxanima 2023-11-03 12:55:50 -04:00 committed by GitHub
parent cef1b5863e
commit 33dffe6ce2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 1 deletions

View File

@ -3,4 +3,13 @@ image: {{.Values.debugContainer.image.name}}:{{.Values.debugContainer.image.vers
imagePullPolicy: {{.Values.debugContainer.image.pullPolicy | default .Values.imagePullPolicy}}
name: linkerd-debug
terminationMessagePolicy: FallbackToLogsOnError
# some environments require probes, so we provide some infallible ones
livenessProbe:
exec:
command:
- "true"
readinessProbe:
exec:
command:
- "true"
{{- end -}}

View File

@ -174,7 +174,15 @@ spec:
name: http
- image: cr.l5d.io/linkerd/debug:test-inject-debug-version
imagePullPolicy: IfNotPresent
livenessProbe:
exec:
command:
- "true"
name: linkerd-debug
readinessProbe:
exec:
command:
- "true"
terminationMessagePolicy: FallbackToLogsOnError
initContainers:
- args:

View File

@ -222,7 +222,15 @@ spec:
name: config
- image: cr.l5d.io/linkerd/debug:test-inject-debug-version
imagePullPolicy: IfNotPresent
livenessProbe:
exec:
command:
- "true"
name: linkerd-debug
readinessProbe:
exec:
command:
- "true"
terminationMessagePolicy: FallbackToLogsOnError
dnsPolicy: ClusterFirst
initContainers:

View File

@ -103,7 +103,17 @@
"image": "cr.l5d.io/linkerd/debug:dev-undefined",
"imagePullPolicy": "IfNotPresent",
"name": "linkerd-debug",
"terminationMessagePolicy": "FallbackToLogsOnError"
"terminationMessagePolicy": "FallbackToLogsOnError",
"livenessProbe": {
"exec": {
"command": ["true"]
}
},
"readinessProbe": {
"exec": {
"command": ["true"]
}
}
}
},
{