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
737e326f
authored
2022-03-29 13:02:49 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fake out a HOME.
1 parent
7cf8d0d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
k8s-bootstrap.yaml
k8s-bootstrap.yaml
View file @
737e326
...
...
@@ -5,7 +5,9 @@ metadata:
name
:
k8s-bootstrap-config
namespace
:
kube-system
data
:
GIT_SSH_COMMAND
:
ssh -o StrictHostKeyChecking=no -i /tmp/cluster-ssh/ssh-private-key
HOME
:
/tmp/cluster-home
GIT_SSH_COMMAND
:
ssh -o StrictHostKeyChecking=no
#-i /tmp/cluster-ssh/ssh-private-key
---
apiVersion
:
v1
kind
:
ConfigMap
...
...
@@ -17,6 +19,7 @@ data:
#!/bin/sh
set -ex
# FIXME: don't hard-code this.
echo "GIT_SSH_COMMAND=$GIT_SSH_COMMAND"
git clone git@gitlab.brainfood.com:brainfood/k8s-start-of-day.git /tmp/git-storage/k8s-start-of-day
---
apiVersion
:
batch/v1
...
...
@@ -59,7 +62,8 @@ spec:
-
name
:
k8s-bootstrap-scripts
mountPath
:
/tmp/k8s-bootstrap-scripts
-
name
:
cluster-ssh
mountPath
:
/tmp/cluster-ssh
mountPath
:
/tmp/cluster-home/.ssh/id
subPath
:
ssh-private-key
-
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