xiaods / k8e

K8E - Kubernetes Easy Engine
https://getk8e.com
Apache License 2.0
391 stars 25 forks source link

How to change api-server IP? #289

Closed xiaocode closed 1 year ago

xiaocode commented 1 year ago

I change my network, it got another IP, then the k8s can not start.

xiaods commented 1 year ago

Oops, the failed node is master node else salve node?

xiaods commented 1 year ago

all k8e env is setting to this file: /etc/systemd/system/k8e.service.env, please double check. after you get some change, you should be restart k8e service like blow command:

systemctl restart k8e
xiaocode commented 1 year ago

Yeah,It is master node.I reinstall the k8s, and set the API_SERVER_IP as xxx.domain.local,then update the hosts file direct the url to IP, solved it!

xiaocode commented 1 year ago

systemctl restart k8e

Next time I have a try!

xiaods commented 1 year ago

good news.

xiaods commented 1 year ago

resolved as expected. /close