bf6c3b7e by Adam Heath

WIP: Trying to create a proper ssh home config.

1 parent 737e326f
......@@ -6,7 +6,9 @@ metadata:
namespace: kube-system
data:
HOME: /tmp/cluster-home
GIT_SSH_COMMAND: ssh -o StrictHostKeyChecking=no
SSH_CONFIG: |
StrictHostKeyChecking no
#-i /tmp/cluster-ssh/ssh-private-key
---
apiVersion: v1
......@@ -19,7 +21,7 @@ data:
#!/bin/sh
set -ex
# FIXME: don't hard-code this.
echo "GIT_SSH_COMMAND=$GIT_SSH_COMMAND"
ls -alR $HOME
git clone git@gitlab.brainfood.com:brainfood/k8s-start-of-day.git /tmp/git-storage/k8s-start-of-day
---
apiVersion: batch/v1
......@@ -64,6 +66,9 @@ spec:
- name: cluster-ssh
mountPath: /tmp/cluster-home/.ssh/id
subPath: ssh-private-key
- name: cluster-ssh
mountPath: /tmp/cluster-home/.ssh/config
subPath: SSH_CONFIG
- name: git-storage
mountPath: /tmp/git-storage
command: ["/tmp/k8s-bootstrap-scripts/clone-start-of-day"]
......