mirror of
https://github.com/apricote/home-cloud.git
synced 2026-01-13 13:01:03 +00:00
feat: new k8s deployment (v3)
This commit is contained in:
parent
48c08f7262
commit
b43d70812e
13 changed files with 64 additions and 532 deletions
7
Makefile
7
Makefile
|
|
@ -12,7 +12,6 @@ destroy: init
|
|||
$(TF) destroy $(TFFLAGS)
|
||||
|
||||
lint: init
|
||||
$(VALIDATE) k3s_cluster_v2
|
||||
$(VALIDATE) .
|
||||
|
||||
init: keys/id_terraform
|
||||
|
|
@ -27,9 +26,3 @@ import:
|
|||
keys/id_terraform:
|
||||
echo "No private key found! Generating Terraform SSH Keys."
|
||||
./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