From 44af234c81cec1f17744a4ab0766a24d01e8c994 Mon Sep 17 00:00:00 2001 From: James Turland Date: Mon, 4 Dec 2023 11:47:38 +0000 Subject: [PATCH] update --- Kubernetes/RKE2/{k3s => kube-vip} | 0 Kubernetes/RKE2/rke2-test-do-not-use.sh | 5 ++++- 2 files changed, 4 insertions(+), 1 deletion(-) rename Kubernetes/RKE2/{k3s => kube-vip} (100%) diff --git a/Kubernetes/RKE2/k3s b/Kubernetes/RKE2/kube-vip similarity index 100% rename from Kubernetes/RKE2/k3s rename to Kubernetes/RKE2/kube-vip diff --git a/Kubernetes/RKE2/rke2-test-do-not-use.sh b/Kubernetes/RKE2/rke2-test-do-not-use.sh index f099bda..890d1bf 100644 --- a/Kubernetes/RKE2/rke2-test-do-not-use.sh +++ b/Kubernetes/RKE2/rke2-test-do-not-use.sh @@ -95,7 +95,10 @@ done # create RKE2's self-installing manifest dir sudo mkdir -p /var/lib/rancher/rke2/server/manifests # Install the kube-vip deployment into rke2's self-installing manifest folder -curl -sL https://raw.githubusercontent.com/JamesTurland/JimsGarage/main/Kubernetes/RKE2/k3s | vipAddress=$vip vipInterface=$interface sh | sudo tee /var/lib/rancher/rke2/server/manifests/kube-vip.yaml +curl -sO https://raw.githubusercontent.com/JamesTurland/JimsGarage/main/Kubernetes/RKE2/kube-vip +cat kube-vip | sed 's/$interface/'$interface'/g; s/$vip/'$vip'/g' > $HOME/kube-vip.yaml +sudo mv kube-vip.yaml /var/lib/rancher/rke2/server/manifests/kube-vip.yaml + # Find/Replace all k3s entries to represent rke2 sudo sed -i 's/k3s/rke2/g' /var/lib/rancher/rke2/server/manifests/kube-vip.yaml # copy kube-vip.yaml to home directory