Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
k8s-bootstrap
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
bf6c3b7e
authored
2022-03-29 13:07:21 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
WIP: Trying to create a proper ssh home config.
1 parent
737e326f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
k8s-bootstrap.yaml
k8s-bootstrap.yaml
View file @
bf6c3b7
...
...
@@ -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"
]
...
...
Please
register
or
sign in
to post a comment