From 3a5333330cfb9ebfc9e5313cfd1433ca5dace739 Mon Sep 17 00:00:00 2001 From: Conan Scott Date: Mon, 2 Feb 2026 19:53:51 +1100 Subject: [PATCH] mounting kubeconfig as a secret at /home/claw/.kube --- Dockerfile | 1 - manifests/deployment.yaml | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index bc7ed71..e0dcaf3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,6 @@ RUN apt-get update && apt-get install -y curl wget git jq un # Install yq (binary release for latest version) RUN wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq && chmod +x /usr/bin/yq RUN wget https://downloads-openshift-console.apps.lab.apilab.us/amd64/linux/oc.tar -O /tmp/oc.tar && tar -xvf /tmp/oc.tar -C /usr/bin/ && rm /tmp/oc.tar && chmod +x /usr/bin/oc -ENV KUBECONFIG=/data/.kube/config # Setup SSH directory & Config for OpenShift (Random UID support) RUN mkdir -p /var/run/sshd && chmod 775 /var/run/sshd diff --git a/manifests/deployment.yaml b/manifests/deployment.yaml index 024817c..f626af0 100644 --- a/manifests/deployment.yaml +++ b/manifests/deployment.yaml @@ -65,6 +65,7 @@ spec: name: data-volume - mountPath: /home/claw/.ssh name: ssh-working + - mountPath: /home/claw/.kube resources: limits: memory: "1Gi" @@ -86,6 +87,8 @@ spec: - name: ssh-keys-secret secret: secretName: clawdbox-ssh-keys - defaultMode: 0600 + - name: kubeconfig-secret + secret: + secretName: kube - name: ssh-working emptyDir: {}