Skip to content

Probes

Appears in

  • .Values.workload.$name.podSpec.containers.$name

probes

Define probes for the container

Keyworkload.$name.podSpec.containers.$name.probes
Typemap
Required
Helm tpl
Default{}

Example

workload:
workload-name:
podSpec:
containers:
container-name:
probes: {}

probes.liveness

Define the liveness probe

Keyworkload.$name.podSpec.containers.$name.probes.liveness
Typemap
Required
Helm tpl
Default{}

Example

workload:
workload-name:
podSpec:
containers:
container-name:
probes:
liveness: {}

probes.readiness

Define the readiness probe

Keyworkload.$name.podSpec.containers.$name.probes.readiness
Typemap
Required
Helm tpl
Default{}

Example

workload:
workload-name:
podSpec:
containers:
container-name:
probes:
readiness: {}

probes.startup

Define the startup probe

Keyworkload.$name.podSpec.containers.$name.probes.startup
Typemap
Required
Helm tpl
Default{}

Example

workload:
workload-name:
podSpec:
containers:
container-name:
probes:
startup: {}

probes.$probe.enabled

Enable or disable the probe

Keyworkload.$name.podSpec.containers.$name.probes.$probe.enabled
Typebool
Required
Helm tpl
Defaulttrue

Example

workload:
workload-name:
podSpec:
containers:
container-name:
probes:
liveness:
enabled: true

probes.$probe.type

Define probe type

Keyworkload.$name.podSpec.containers.$name.probes.$probe.type
Typestring
Required
Helm tpl
Defaulthttp

Valid Values:

  • exec
  • http
  • https
  • tcp
  • grpc

Example

workload:
workload-name:
podSpec:
containers:
container-name:
probes:
liveness:
type: http

probes.$probe.command

Define command(s)

See Command for more information.


probes.$probe.port

Define the port

Keyworkload.$name.podSpec.containers.$name.probes.$probe.port
Typeint
Required
Helm tpl
Defaultunset

Example

workload:
workload-name:
podSpec:
containers:
container-name:
probes:
liveness:
port: 8080

probes.$probe.path

Define the path

Keyworkload.$name.podSpec.containers.$name.probes.$probe.path
Typestring
Required
Helm tpl
Default/

Example

workload:
workload-name:
podSpec:
containers:
container-name:
probes:
liveness:
path: /healthz

probes.$probe.httpHeaders

Define the httpHeaders

Keyworkload.$name.podSpec.containers.$name.probes.$probe.httpHeaders
Typemap
Required
Helm tpl✅ (On value only)
Default{}

Example

workload:
workload-name:
podSpec:
containers:
container-name:
probes:
liveness:
httpHeaders:
key1: value1
key2: value2

probes.$probe.spec

Define the probe spec

Keyworkload.$name.podSpec.containers.$name.probes.$probe.spec
Typemap
Required
Helm tpl
Default{}

Example

workload:
workload-name:
podSpec:
containers:
container-name:
probes:
liveness:
spec: {}

probes.$probe.spec.initialDelaySeconds

Define the initialDelaySeconds in seconds

Keyworkload.$name.podSpec.containers.$name.probes.$probe.spec.initialDelaySeconds
Typeint
Required
Helm tpl
DefaultSee defaults for each probe here

Example

workload:
workload-name:
podSpec:
containers:
container-name:
probes:
liveness:
spec:
initialDelaySeconds: 10

probes.$probe.spec.periodSeconds

Define the periodSeconds in seconds

Keyworkload.$name.podSpec.containers.$name.probes.$probe.spec.periodSeconds
Typeint
Required
Helm tpl
DefaultSee defaults for each probe here

Example

workload:
workload-name:
podSpec:
containers:
container-name:
probes:
liveness:
spec:
periodSeconds: 10

probes.$probe.spec.timeoutSeconds

Define the timeoutSeconds in seconds

Keyworkload.$name.podSpec.containers.$name.probes.$probe.spec.timeoutSeconds
Typeint
Required
Helm tpl
DefaultSee defaults for each probe here

Example

workload:
workload-name:
podSpec:
containers:
container-name:
probes:
liveness:
spec:
timeoutSeconds: 10

probes.$probe.spec.failureThreshold

Define the failureThreshold in seconds

Keyworkload.$name.podSpec.containers.$name.probes.$probe.spec.failureThreshold
Typeint
Required
Helm tpl
DefaultSee defaults for each probe here

Example

workload:
workload-name:
podSpec:
containers:
container-name:
probes:
liveness:
spec:
failureThreshold: 10

probes.$probe.spec.successThreshold

Define the successThreshold in seconds. liveness and startup must always be 1

Keyworkload.$name.podSpec.containers.$name.probes.$probe.spec.successThreshold
Typeint
Required
Helm tpl
DefaultSee defaults for each probe here

Example

workload:
workload-name:
podSpec:
containers:
container-name:
probes:
readiness:
spec:
successThreshold: 10

Full 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