首页 > 解决方案 > 重命名 okd 集群的主节点的最佳方法是什么?

问题描述

我们正在运行一个集群“单主多节点”(在https://docs.okd.io/latest/install/index.html#multi-masters-using-native-ha-colocated中)。让我们称我们的服务器为 oomaster1、oonode1 和 oonode2。

有一天我想添加其他master,我认为第一步是添加一个VIP oomaster,现在只指向oomaster1,然后将集群(当前为oomaster1)重命名为oomaster。

最好的方法是什么?我的意思是我可以停止所有与 okd 相关的服务,并在 /etc/origin 和 /etc/etcd 的每个文件中将 oomaster1 (及其地址)替换为 oomaster (及其地址),然后重新启动服务。但我想它更复杂......

提前感谢您的建议

标签: openshiftopenshift-originokd

解决方案


我认为您应该将现有的cluster( masterand nodes)替换cluster为配置为 new 的 new hostname,因为masterandnodes部署了各种certificates基于master hostname加密通信和身份验证的。而且我不知道现有的master主机名是否可以更改。


推荐阅读