JamesTurland / JimsGarage

Homelab Goodies
2.18k stars 485 forks source link

Hard coded vipInterface rke2.sh #22

Closed SamB-GB closed 1 year ago

SamB-GB commented 1 year ago

Hi,

It looks like the vipInterface is hard coded on the line 98 on the rke2.sh script

curl -sL https://raw.githubusercontent.com/JamesTurland/JimsGarage/main/Kubernetes/RKE2/k3s |  vipAddress=$vip vipInterface=eth0 sh | sudo tee /var/lib/rancher/rke2/server/manifests/kube-vip.yaml

Should be

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
JamesTurland commented 1 year ago

Thanks, that's now addressed.