Skip to content

Commit

Permalink
Deployment healtchecks
Browse files Browse the repository at this point in the history
  • Loading branch information
byrnedo committed Sep 17, 2024
1 parent 26a9b25 commit 6b2b40a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions content/docs/components/deployments.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,15 @@ spec:
All pods in a deployment automatically receive a dns listing under `<name>.<namespace>.pod.cluster.skate`.
See [Services](/docs/components/services) for more information on exposing the deployment as a service which is more reliable.

## Healthchecks

`podman kube play` supports `livenessProbe` in the pod manifest.
The best way to ensure that http traffic stops being routed to an unhealthy pod is to combine that with `restartPolicy`
of `Always` or `OnFailure`.

**Traffic will only start being routed to your pod once all containers in the pod are healthy.**

NOTE: using the `httpGet` probe results in podman trying to run `curl` within the container.
With `tcpSocket` it looks for `nc`.


0 comments on commit 6b2b40a

Please sign in to comment.