mounting kubeconfig as a secret at /home/claw/.kube
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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: {}
|
||||
|
||||
Reference in New Issue
Block a user