Add k3s and flux installation

This commit is contained in:
Daniel Cosme
2026-04-17 18:11:18 -04:00
parent 78ec3af8c4
commit ff4eb295ef
16 changed files with 341 additions and 6498 deletions

11
scripts/get_kubeconfig.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
set -euo pipefail
echo CLUSTER NAME: $CLUSTER_NAME
echo HOST: $CLUSTER_HOST
echo USER: $LINUX_ADMIN
rsync --rsync-path="sudo rsync" $LINUX_ADMIN@$CLUSTER_HOST:/etc/rancher/k3s/k3s.yaml ~/.kube/$CLUSTER_NAME
sudo sed -i "s/127.0.0.1/$CLUSTER_HOST/g" ~/.kube/$CLUSTER_NAME
kubectl --kubeconfig ~/.kube/$CLUSTER_NAME get pods -A