mirror of
https://github.com/apricote/home-cloud.git
synced 2026-01-13 13:01:03 +00:00
deploy with k3s
This commit is contained in:
parent
0f08cfb0d2
commit
2863062e44
26 changed files with 456 additions and 207 deletions
12
Makefile
12
Makefile
|
|
@ -17,9 +17,15 @@ lint: init
|
|||
$(VALIDATE) services/bitwarden
|
||||
$(VALIDATE) .
|
||||
|
||||
init: keys
|
||||
init: keys/id_terraform
|
||||
$(TF) init
|
||||
|
||||
keys: keys/id_terraform
|
||||
keys/id_terraform:
|
||||
echo "No private key found! Generating Terraform SSH Keys."
|
||||
./bootstrap-keys.sh
|
||||
./scripts/bootstrap-keys.sh
|
||||
|
||||
kubeconfig: keys/id_terraform
|
||||
|
||||
scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i keys/id_terraform root@`terraform output cluster_public_ip`:/etc/rancher/k3s/k3s.yaml ./kubeconfig.yaml
|
||||
sed -i "s/127.0.0.1/`terraform output cluster_public_ip`/g" ./kubeconfig.yaml
|
||||
sed -i "s/default/`terraform output cluster_name`/g" ./kubeconfig.yaml
|
||||
Loading…
Add table
Add a link
Reference in a new issue