doc: add k8s probe notes to helm doc (#9543)

This commit is contained in:
Jason O'Donnell 2020-07-21 12:40:43 -04:00 committed by GitHub
parent 259aa74728
commit a3e0620cd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

View File

@ -358,6 +358,27 @@ server:
}
```
### Probes
Probes are essential for detecting failures, rescheduling and using pods in
Kubernetes. The helm chart offers configurable readiness and liveliness probes
which can be customized for a variety of use cases.
Vault's [/sys/health`](/api-docs/system/health) endpoint can be customized to
change the behavior of the health check. For example, we can change the Vault
readiness probe to show the Vault pods are ready even if they're still uninitialized
and sealed using the following probe:
```yaml
server:
readinessProbe:
enabled: true
path: "/v1/sys/health?standbyok=true&sealedcode=204&uninitcode=204"
```
Using this customized probe, a `postStart` script could automatically run once the
pod is ready for additional setup.
### Upgrading Vault on Kubernetes
To upgrade Vault on Kubernetes, we follow the same pattern as