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
e9c9ece2
authored
2022-03-29 12:59:04 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Move config cm to -scripts, create real -config cm.
1 parent
351a40fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
k8s-bootstrap.yaml
k8s-bootstrap.yaml
View file @
e9c9ece
...
...
@@ -2,13 +2,20 @@
apiVersion
:
v1
kind
:
ConfigMap
metadata
:
name
:
k8s-bootstrap
name
:
k8s-bootstrap-config
namespace
:
kube-system
data
:
GIT_SSH_COMMAND
:
ssh -o StrictHostKeyChecking=no -i /tmp/cluster-ssh/ssh-private-key
---
apiVersion
:
v1
kind
:
ConfigMap
metadata
:
name
:
k8s-bootstrap-scripts
namespace
:
kube-system
data
:
clone-start-of-day
:
|
#!/bin/sh
set -ex
GIT_SSH_COMMAND="ssh -i /tmp/cluster-ssh/ssh-private-key"
# FIXME: don't hard-code this.
git clone git@gitlab.brainfood.com:brainfood/k8s-start-of-day.git /tmp/git-storage/k8s-start-of-day
---
...
...
@@ -45,14 +52,17 @@ spec:
initContainers
:
-
name
:
clone-k8s-start-of-day
image
:
bitnami/git
envFrom
:
-
configMapRef
:
name
:
k8s-bootstrap-config
volumeMounts
:
-
name
:
k8s-bootstrap
mountPath
:
/tmp/k8s-bootstrap
-
name
:
k8s-bootstrap
-scripts
mountPath
:
/tmp/k8s-bootstrap
-scripts
-
name
:
cluster-ssh
mountPath
:
/tmp/cluster-ssh
-
name
:
git-storage
mountPath
:
/tmp/git-storage
command
:
[
"
/tmp/k8s-bootstrap/clone-start-of-day"
]
command
:
[
"
/tmp/k8s-bootstrap
-scripts
/clone-start-of-day"
]
containers
:
-
name
:
show-status
...
...
Please
register
or
sign in
to post a comment