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
12769c25
authored
2022-03-29 12:31:19 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Initial attempt at k8s-bootstrap.
1 parent
c7947e09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
52 additions
and
0 deletions
k8s-bootstrap.yaml
k8s-bootstrap.yaml
0 → 100644
View file @
12769c2
apiVersion
:
batch/v1
kind
:
Job
metadata
:
name
:
k8s-bootstrap
namespace
:
kube-system
spec
:
template
:
spec
:
restartPolicy
:
OnFailure
securityContext
:
runAsUser
:
1234
runAsGroup
:
1234
fsGroup
:
1234
tolerations
:
-
effect
:
NoSchedule
key
:
node-role.kubernetes.io/master
volumes
:
-
name
:
git-storage
emptyDir
:
{}
-
name
:
cluster-ssh-key
secret
:
name
:
cluster-ssh-key
defaultMode
:
0600
initContainers
:
-
name
:
clone-k8s-start-of-day
image
:
bitnami/git
volumeMounts
:
-
name
:
cluster-ssh-key
mountPath
:
/tmp/cluster-ssh-key
-
name
:
git-storage
mountPath
:
/tmp/git-storage
command
:
|
#!/bin/sh
set -ex
GIT_SSH_COMMAND="ssh -i /tmp/cluster-ssh-key/ssh-private-key"
git clone git@gitlab.brainfood.com:brainfood/k8s-start-of-day.git /tmp/git-storage/k8s-start-of-day
containers
:
-
name
:
show-status
image
:
bash
command
:
|
#!/bin/sh
set -ex
ls -al /tmp/git-storage
volumeMounts
:
-
name
:
git-storage
mountPath
:
/tmp/git-storage
Please
register
or
sign in
to post a comment