Probes
Appears in
.Values.workload.$name.podSpec.containers.$name
probes
Define probes for the container
| Key | workload.$name.podSpec.containers.$name.probes |
| Type | map |
| Required | ✅ |
Helm tpl | ❌ |
| Default | {} |
Example
workload: workload-name: podSpec: containers: container-name: probes: {}probes.liveness
Define the liveness probe
| Key | workload.$name.podSpec.containers.$name.probes.liveness |
| Type | map |
| Required | ✅ |
Helm tpl | ❌ |
| Default | {} |
Example
workload: workload-name: podSpec: containers: container-name: probes: liveness: {}probes.readiness
Define the readiness probe
| Key | workload.$name.podSpec.containers.$name.probes.readiness |
| Type | map |
| Required | ✅ |
Helm tpl | ❌ |
| Default | {} |
Example
workload: workload-name: podSpec: containers: container-name: probes: readiness: {}probes.startup
Define the startup probe
| Key | workload.$name.podSpec.containers.$name.probes.startup |
| Type | map |
| Required | ✅ |
Helm tpl | ❌ |
| Default | {} |
Example
workload: workload-name: podSpec: containers: container-name: probes: startup: {}probes.$probe.enabled
Enable or disable the probe
| Key | workload.$name.podSpec.containers.$name.probes.$probe.enabled |
| Type | bool |
| Required | ✅ |
Helm tpl | ❌ |
| Default | true |
Example
workload: workload-name: podSpec: containers: container-name: probes: liveness: enabled: trueprobes.$probe.type
Define probe type
| Key | workload.$name.podSpec.containers.$name.probes.$probe.type |
| Type | string |
| Required | ❌ |
Helm tpl | ✅ |
| Default | http |
Valid Values:
exechttphttpstcpgrpc
Example
workload: workload-name: podSpec: containers: container-name: probes: liveness: type: httpprobes.$probe.command
Define command(s)
See Command for more information.
probes.$probe.port
Define the port
| Key | workload.$name.podSpec.containers.$name.probes.$probe.port |
| Type | int |
| Required | ✅ |
Helm tpl | ✅ |
| Default | unset |
Example
workload: workload-name: podSpec: containers: container-name: probes: liveness: port: 8080probes.$probe.path
Define the path
| Key | workload.$name.podSpec.containers.$name.probes.$probe.path |
| Type | string |
| Required | ❌ |
Helm tpl | ✅ |
| Default | / |
Example
workload: workload-name: podSpec: containers: container-name: probes: liveness: path: /healthzprobes.$probe.httpHeaders
Define the httpHeaders
| Key | workload.$name.podSpec.containers.$name.probes.$probe.httpHeaders |
| Type | map |
| Required | ❌ |
Helm tpl | ✅ (On value only) |
| Default | {} |
Example
workload: workload-name: podSpec: containers: container-name: probes: liveness: httpHeaders: key1: value1 key2: value2probes.$probe.spec
Define the probe spec
| Key | workload.$name.podSpec.containers.$name.probes.$probe.spec |
| Type | map |
| Required | ❌ |
Helm tpl | ❌ |
| Default | {} |
Example
workload: workload-name: podSpec: containers: container-name: probes: liveness: spec: {}probes.$probe.spec.initialDelaySeconds
Define the initialDelaySeconds in seconds
| Key | workload.$name.podSpec.containers.$name.probes.$probe.spec.initialDelaySeconds |
| Type | int |
| Required | ❌ |
Helm tpl | ❌ |
| Default | See defaults for each probe here |
Example
workload: workload-name: podSpec: containers: container-name: probes: liveness: spec: initialDelaySeconds: 10probes.$probe.spec.periodSeconds
Define the periodSeconds in seconds
| Key | workload.$name.podSpec.containers.$name.probes.$probe.spec.periodSeconds |
| Type | int |
| Required | ❌ |
Helm tpl | ❌ |
| Default | See defaults for each probe here |
Example
workload: workload-name: podSpec: containers: container-name: probes: liveness: spec: periodSeconds: 10probes.$probe.spec.timeoutSeconds
Define the timeoutSeconds in seconds
| Key | workload.$name.podSpec.containers.$name.probes.$probe.spec.timeoutSeconds |
| Type | int |
| Required | ❌ |
Helm tpl | ❌ |
| Default | See defaults for each probe here |
Example
workload: workload-name: podSpec: containers: container-name: probes: liveness: spec: timeoutSeconds: 10probes.$probe.spec.failureThreshold
Define the failureThreshold in seconds
| Key | workload.$name.podSpec.containers.$name.probes.$probe.spec.failureThreshold |
| Type | int |
| Required | ❌ |
Helm tpl | ❌ |
| Default | See defaults for each probe here |
Example
workload: workload-name: podSpec: containers: container-name: probes: liveness: spec: failureThreshold: 10probes.$probe.spec.successThreshold
Define the successThreshold in seconds. liveness and startup must always be 1
| Key | workload.$name.podSpec.containers.$name.probes.$probe.spec.successThreshold |
| Type | int |
| Required | ❌ |
Helm tpl | ❌ |
| Default | See defaults for each probe here |
Example
workload: workload-name: podSpec: containers: container-name: probes: readiness: spec: successThreshold: 10Full Examples
workload: workload-name: enabled: true primary: true podSpec: containers: container-name: enabled: true primary: true probes: liveness: enabled: true type: https port: 8080 path: /healthz httpHeaders: key1: value1 key2: value2 spec: initialDelaySeconds: 10 periodSeconds: 10 timeoutSeconds: 10 failureThreshold: 10 successThreshold: 10 readiness: enabled: true type: tcp port: 8080 spec: initialDelaySeconds: 10 periodSeconds: 10 timeoutSeconds: 10 failureThreshold: 10 successThreshold: 10 startup: enabled: true type: exec command: - command1 - command2 spec: initialDelaySeconds: 10 periodSeconds: 10 timeoutSeconds: 10 failureThreshold: 10 successThreshold: 10