https://rancher.com/ logo
#k3s
Title
# k3s
a

agreeable-garden-91801

10/18/2022, 8:26 AM
Hi! There is a proper way to change host IP of master node on k3s running cluster ?(can be single-node or multi-node). when changing IP address k3s service is not starting. is there correct way without deleting node to change IP? Thanks
b

bland-account-99790

10/18/2022, 9:32 AM
There is no kubernetes API to do this. At your own risk, you could stop k3s service, modify the
node-ip
config and restart the k3s service. But there might be connectivity problems. This is a use case that is not tested
c

cool-room-99795

10/18/2022, 10:33 AM
For a multi node cluster the best and I think correct thing is to remove a node and add it back in with the new ip. I have done with to reply all my controllers with new devices.
a

agreeable-garden-91801

10/18/2022, 11:21 AM
Thanks @bland-account-99790 I tried it after restart k3s service i got error
Failed to test data store connection: this server is a not a member of the etcd cluster.
looking for old IP Tried to remove
/var/lib/rancher/k3s/server/db/etcd/member/*
k3s start successfully but all resources have been removed. Thanks @cool-room-99795
446 Views