mounting kubeconfig as a secret at /home/claw/.kube

This commit is contained in:
2026-02-02 19:53:51 +11:00
parent da9be91d51
commit 3a5333330c
2 changed files with 4 additions and 2 deletions

View File

@@ -9,7 +9,6 @@ RUN apt-get update && apt-get install -y curl wget git jq un
# Install yq (binary release for latest version) # 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://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 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) # Setup SSH directory & Config for OpenShift (Random UID support)
RUN mkdir -p /var/run/sshd && chmod 775 /var/run/sshd RUN mkdir -p /var/run/sshd && chmod 775 /var/run/sshd

View File

@@ -65,6 +65,7 @@ spec:
name: data-volume name: data-volume
- mountPath: /home/claw/.ssh - mountPath: /home/claw/.ssh
name: ssh-working name: ssh-working
- mountPath: /home/claw/.kube
resources: resources:
limits: limits:
memory: "1Gi" memory: "1Gi"
@@ -86,6 +87,8 @@ spec:
- name: ssh-keys-secret - name: ssh-keys-secret
secret: secret:
secretName: clawdbox-ssh-keys secretName: clawdbox-ssh-keys
defaultMode: 0600 - name: kubeconfig-secret
secret:
secretName: kube
- name: ssh-working - name: ssh-working
emptyDir: {} emptyDir: {}