From 0c3f9f2fabf8ae88b9b73575653c0f8a0bb337c4 Mon Sep 17 00:00:00 2001 From: Viktor Liu Date: Sun, 22 Mar 2026 05:25:09 +0100 Subject: [PATCH] Add health probe configuration to Kubernetes deployment guide --- .../cloud/routing-peers-and-kubernetes.mdx | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/pages/use-cases/cloud/routing-peers-and-kubernetes.mdx b/src/pages/use-cases/cloud/routing-peers-and-kubernetes.mdx index 6023f6295..def17b5fc 100644 --- a/src/pages/use-cases/cloud/routing-peers-and-kubernetes.mdx +++ b/src/pages/use-cases/cloud/routing-peers-and-kubernetes.mdx @@ -99,8 +99,33 @@ spec: - NET_ADMIN - SYS_RESOURCE - SYS_ADMIN + livenessProbe: + exec: + command: ["netbird", "status", "--check", "live"] + initialDelaySeconds: 5 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 3 + readinessProbe: + exec: + command: ["netbird", "status", "--check", "ready"] + initialDelaySeconds: 5 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 3 + startupProbe: + exec: + command: ["netbird", "status", "--check", "startup"] + periodSeconds: 2 + timeoutSeconds: 10 + failureThreshold: 30 ``` +The health probes use `netbird status --check` to verify the client state: +- **live**: checks that the daemon process is responsive +- **ready**: checks that the client is not in an authentication-required state (NeedsLogin, LoginFailed, SessionExpired) +- **startup**: checks that management and signal are connected, and that at least one relay server is available if any are configured + Edit your deployment.yml file, incorporating the setup key into the relevant sections. Apply the updated deployment file to your Kubernetes cluster using the following command: