https://rancher.com/ logo
p

polite-megabyte-63476

05/17/2022, 2:26 PM
Any way to change the VIP address?
We need to change the static IP down due to an oversight in our IP convention
@witty-jelly-95845 Any suggestions?
w

witty-jelly-95845

05/17/2022, 3:15 PM
Do you have one node or multiple ?
p

polite-megabyte-63476

05/17/2022, 3:16 PM
Currently we have 2 nodes
w

witty-jelly-95845

05/17/2022, 6:32 PM
According to https://github.com/harvester/harvester/issues/2063#issuecomment-1094281911 theoretically VIP could be changed but ...
p

polite-megabyte-63476

05/17/2022, 6:33 PM
Welp time to rebuild for the second time
I scaled down to a single harvester instance
Our node IP is fine
w

witty-jelly-95845

05/17/2022, 6:39 PM
I've found VIP using kubectl
kubectl get service -n kube-system ingress-expose
but I'm not about to try changing that without more digging (it must be configured somewhere so nodes know what to talk to) plus I need my cluster working right now!
p

polite-megabyte-63476

05/17/2022, 6:40 PM
That worked
I found all references to the old ip and changed it
w

witty-jelly-95845

05/17/2022, 6:41 PM
Well I suppose if you're going to reinstall anyway 🤓
p

polite-megabyte-63476

05/17/2022, 6:43 PM
We just need to reinstall our other nodes
kubectl get all -o yaml --all-namespaces | grep "old_ip"
though I hear
kubectl get all
is deprecated
kubectl edit configmaps -n harvester-system vip
You also have to delete
serving-cert
and restart internal rancher
w

witty-jelly-95845

05/19/2022, 10:56 AM
Re
kubectl get all
being deprecated, https://github.com/kubernetes/kubectl/issues/151 was an interesting read!
31 Views