Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master IP changes, and add new master problems #27

Open
Msunshineboy opened this issue Jan 7, 2022 · 6 comments
Open

Master IP changes, and add new master problems #27

Msunshineboy opened this issue Jan 7, 2022 · 6 comments
Assignees
Labels
enhancement New feature or request

Comments

@Msunshineboy
Copy link

mater ip 发生了改变该怎么办?

@houseonline
Copy link
Collaborator

k8s集羣中的master IP是非常重要的,建議你不要輕易的去改變它,集羣中很多https證書的信任關係。
node IP可以改變,node IP修改之後到node上執行rm -rf /etc/kubernetes/ssl/kubelet* && systemctl restart kubelet即可重新加入到k8s集羣。

@lxd5866
Copy link

lxd5866 commented Jan 17, 2022

可以增加 keepalived + lvs 做 master 和 worker 的解耦吗

@houseonline
Copy link
Collaborator

houseonline commented Jan 21, 2022

暫時不支持,主要基於以下考慮:

  • 這需要額外引入一個協力廠商負載均衡軟件或硬體。
  • 而且生產環境一般不會去動master的ip地址。
  • 另外,keepalived + lvs的主備HA架構,對於規模大的生產環境場景是存在瓶頸點。

@houseonline
Copy link
Collaborator

可以增加 keepalived + lvs 做 master 和 worker 的解耦吗

不過你可以自己通過嘗試配寘來解决問題,比如使用nginx、lvs、haproxy、f5負載等化器等協力廠商負載均衡給master ip做負載均衡,然後配寘kubelet指向新的負載均衡ip。

@syncwang
Copy link

看到可以删除和重建master节点,但是如果在etcd和apiserver配置中新增一个master IP,是否可以新增一个节点为master节点?

@houseonline
Copy link
Collaborator

kube-install暫時還不支持自動化新增master節點,這個將在以後的版本中考慮支持。
不過,kube-install部署出來的就是一個普通的K8S集羣,所以你可以自己手工往集羣中新增master節點,這是可以的。

@cloudnativer cloudnativer added the enhancement New feature or request label Mar 8, 2022
@cloudnativer cloudnativer changed the title master IP Master IP changes, and add new master problems Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants