Probes (Health Checks)
Configure livenessProbe, readinessProbe, and startupProbe for main containers and sidecars in ohMyHelm, including numeric sidecar ports.
Probes (Health Checks)
ohMyHelm supports all three Kubernetes probe types — livenessProbe, readinessProbe, and startupProbe — for both the main container (chart.container) and the optional sidecar (chart.sidecar) in Deployment, StatefulSet, and DaemonSet workloads.
Overview of Probe Types
| Probe | Purpose | Behavior on Failure |
|---|---|---|
startupProbe |
Protects slow-starting applications during initialization | Blocks livenessProbe and readinessProbe until the first success; restarts the container on timeout |
readinessProbe |
Checks whether the container is ready to accept traffic | Temporarily removes the Pod from Service endpoints |
livenessProbe |
Checks whether the process is still healthy and responsive | Automatically restarts the container |
Main Container (chart.container)
For the main container, you can use either named ports defined in chart.container.ports (for example, port: http) or numeric ports:
chart:
enabled: true
fullnameOverride: "acme-service"
container:
image: registry.acme.corp/service:1.2.0
ports:
- name: http
containerPort: 8080
protocol: TCP
startupProbe:
httpGet:
path: /healthz
port: http
failureThreshold: 30
periodSeconds: 5
livenessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 3
failureThreshold: 3
readinessProbe:
httpGet:
path: /readyz
port: http
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 2
failureThreshold: 3
Sidecar Container (chart.sidecar)
chart:
enabled: true
fullnameOverride: "acme-service"
container:
image: registry.acme.corp/service:1.2.0
ports:
- name: http
containerPort: 8080
sidecar:
enabled: true
image: fluent/fluent-bit:3.1
env: []
livenessProbe:
httpGet:
path: /api/v1/health
port: 2020
initialDelaySeconds: 10
periodSeconds: 15
readinessProbe:
httpGet:
path: /api/v1/health
port: 2020
initialDelaySeconds: 5
periodSeconds: 10
Additional Probe Mechanisms (tcpSocket and exec)
Because ohMyHelm passes probe objects directly into the Pod template via toYaml, all native Kubernetes probe mechanisms are available:
TCP Socket Probe
chart:
container:
readinessProbe:
tcpSocket:
port: 5432
initialDelaySeconds: 5
periodSeconds: 10
Exec Probe
chart:
container:
livenessProbe:
exec:
command:
- pg_isready
- -U
- acme
initialDelaySeconds: 15
periodSeconds: 10