Add bootstrapper base
This commit is contained in:
2
flux/.gitignore
vendored
Executable file
2
flux/.gitignore
vendored
Executable file
@@ -0,0 +1,2 @@
|
||||
keys/
|
||||
variables.sh
|
18
flux/bootstrap.sh
Executable file
18
flux/bootstrap.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
. variables.sh
|
||||
|
||||
#eval "$(ssh-agent -s)"
|
||||
#ssh-add keys/id_clank_management
|
||||
|
||||
flux bootstrap git \
|
||||
--url="https://$MANAGEMENT_GITOPS_REPO" \
|
||||
--branch="main" \
|
||||
--path="clusters/clank-management" \
|
||||
--kubeconfig="$CAPH_WORKER_CLUSTER_KUBECONFIG" \
|
||||
--username="kjuulh" \
|
||||
--password="$GITEA_TOKEN" \
|
||||
--token-auth=true
|
||||
|
7
flux/generate-keypair.sh
Executable file
7
flux/generate-keypair.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
mkdir -p keys/
|
||||
|
||||
ssh-keygen -t ed25519 -C "clank_management@kjuulh.io" -f "keys/id_clank_management"
|
Reference in New Issue
Block a user