Add k3s and flux installation
This commit is contained in:
11
scripts/get_kubeconfig.sh
Executable file
11
scripts/get_kubeconfig.sh
Executable 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
|
||||
Reference in New Issue
Block a user