bf6c3b7e by Adam Heath

WIP: Trying to create a proper ssh home config.

1 parent 737e326f
...@@ -6,7 +6,9 @@ metadata: ...@@ -6,7 +6,9 @@ metadata:
6 namespace: kube-system 6 namespace: kube-system
7 data: 7 data:
8 HOME: /tmp/cluster-home 8 HOME: /tmp/cluster-home
9 GIT_SSH_COMMAND: ssh -o StrictHostKeyChecking=no 9 SSH_CONFIG: |
10 StrictHostKeyChecking no
11
10 #-i /tmp/cluster-ssh/ssh-private-key 12 #-i /tmp/cluster-ssh/ssh-private-key
11 --- 13 ---
12 apiVersion: v1 14 apiVersion: v1
...@@ -19,7 +21,7 @@ data: ...@@ -19,7 +21,7 @@ data:
19 #!/bin/sh 21 #!/bin/sh
20 set -ex 22 set -ex
21 # FIXME: don't hard-code this. 23 # FIXME: don't hard-code this.
22 echo "GIT_SSH_COMMAND=$GIT_SSH_COMMAND" 24 ls -alR $HOME
23 git clone git@gitlab.brainfood.com:brainfood/k8s-start-of-day.git /tmp/git-storage/k8s-start-of-day 25 git clone git@gitlab.brainfood.com:brainfood/k8s-start-of-day.git /tmp/git-storage/k8s-start-of-day
24 --- 26 ---
25 apiVersion: batch/v1 27 apiVersion: batch/v1
...@@ -64,6 +66,9 @@ spec: ...@@ -64,6 +66,9 @@ spec:
64 - name: cluster-ssh 66 - name: cluster-ssh
65 mountPath: /tmp/cluster-home/.ssh/id 67 mountPath: /tmp/cluster-home/.ssh/id
66 subPath: ssh-private-key 68 subPath: ssh-private-key
69 - name: cluster-ssh
70 mountPath: /tmp/cluster-home/.ssh/config
71 subPath: SSH_CONFIG
67 - name: git-storage 72 - name: git-storage
68 mountPath: /tmp/git-storage 73 mountPath: /tmp/git-storage
69 command: ["/tmp/k8s-bootstrap-scripts/clone-start-of-day"] 74 command: ["/tmp/k8s-bootstrap-scripts/clone-start-of-day"]
......