From 544f3370da3bc72a2b5238c5875f247778d014d4 Mon Sep 17 00:00:00 2001 From: Hunter Casten <41604962+enchantednatures@users.noreply.github.com> Date: Sun, 9 Mar 2025 15:43:27 -0600 Subject: feat(health): add health check endpoint at `/healthz` (#2549) * feat(health): add health check endpoint at `/healthz` * feat(health-check): remove invalid health-check from docker compose --- k8s/atuin.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'k8s') diff --git a/k8s/atuin.yaml b/k8s/atuin.yaml index 2a9cb82a..7f7174fe 100644 --- a/k8s/atuin.yaml +++ b/k8s/atuin.yaml @@ -33,7 +33,7 @@ spec: image: ghcr.io/atuinsh/atuin:latest name: atuin ports: - - containerPort: 8888 + - containerPort: &port 8888 resources: limits: cpu: 250m @@ -41,6 +41,23 @@ spec: requests: cpu: 250m memory: 1Gi + startupProbe: + httpGet: + path: /healthz + port: *port + failureThreshold: 30 + periodSeconds: 10 + livenessProbe: + httpGet: + path: /healthz + port: *port + initialDelaySeconds: 3 + periodSeconds: 3 + readinessProbe: + tcpSocket: + port: *port + initialDelaySeconds: 15 + periodSeconds: 10 volumeMounts: - mountPath: /config name: atuin-claim0 -- cgit v1.3.1