From 5c8ab74aed35ddc33cfa2b235edf34c926e0a2d0 Mon Sep 17 00:00:00 2001 From: Mayne0213 Date: Thu, 25 Dec 2025 01:06:18 +0900 Subject: [PATCH] FEAT(code-server): grant permissions --- code-server/helm-values/code-server.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/code-server/helm-values/code-server.yaml b/code-server/helm-values/code-server.yaml index 9e39241..7f729a9 100644 --- a/code-server/helm-values/code-server.yaml +++ b/code-server/helm-values/code-server.yaml @@ -50,6 +50,29 @@ extraArgs: extraVars: - name: TZ value: "Asia/Seoul" + - name: KUBECONFIG + value: "/host/etc/rancher/k3s/k3s.yaml" + - name: PATH + value: "/host/usr/local/bin:/host/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + +# Mount host paths for kubectl access +extraVolumes: + - name: host-bin + hostPath: + path: /usr/local/bin + type: Directory + - name: host-k3s-config + hostPath: + path: /etc/rancher/k3s + type: Directory + +extraVolumeMounts: + - name: host-bin + mountPath: /host/usr/local/bin + readOnly: true + - name: host-k3s-config + mountPath: /host/etc/rancher/k3s + readOnly: true # Health checks livenessProbe: