From b0dedc36a1cef420633b885fbbf4ff2f5bae2679 Mon Sep 17 00:00:00 2001 From: jackyliu Date: Wed, 3 Jun 2026 02:33:07 +0000 Subject: [PATCH] Use health endpoint for code-server probes --- .../k3s-hami-v4/kustomization.yaml | 18 ++++++++++++++++-- .../post-renders/k3s-hami/kustomization.yaml | 18 ++++++++++++++++-- 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/packages/code-server/post-renders/k3s-hami-v4/kustomization.yaml b/packages/code-server/post-renders/k3s-hami-v4/kustomization.yaml index 9e466f2..aae5534 100644 --- a/packages/code-server/post-renders/k3s-hami-v4/kustomization.yaml +++ b/packages/code-server/post-renders/k3s-hami-v4/kustomization.yaml @@ -109,12 +109,26 @@ patches: value: /models readinessProbe: httpGet: - path: / + path: /healthz port: http + initialDelaySeconds: 5 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 6 livenessProbe: httpGet: - path: / + path: /healthz port: http + periodSeconds: 20 + timeoutSeconds: 5 + failureThreshold: 6 + startupProbe: + httpGet: + path: /healthz + port: http + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 30 resources: requests: cpu: "{{ cpuRequestMillicores }}m" diff --git a/packages/code-server/post-renders/k3s-hami/kustomization.yaml b/packages/code-server/post-renders/k3s-hami/kustomization.yaml index 3831949..32a795c 100644 --- a/packages/code-server/post-renders/k3s-hami/kustomization.yaml +++ b/packages/code-server/post-renders/k3s-hami/kustomization.yaml @@ -90,12 +90,26 @@ patches: value: /models readinessProbe: httpGet: - path: / + path: /healthz port: http + initialDelaySeconds: 5 + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 6 livenessProbe: httpGet: - path: / + path: /healthz port: http + periodSeconds: 20 + timeoutSeconds: 5 + failureThreshold: 6 + startupProbe: + httpGet: + path: /healthz + port: http + periodSeconds: 10 + timeoutSeconds: 5 + failureThreshold: 30 resources: requests: cpu: "{{ cpuRequestMillicores }}m"