openshift - 重命名 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 (及其地址),然后重新启动服务。但我想它更复杂......
提前感谢您的建议
解决方案
我认为您应该将现有的cluster
( master
and nodes
)替换cluster
为配置为 new 的 new hostname
,因为master
andnodes
部署了各种certificates
基于master
hostname
加密通信和身份验证的。而且我不知道现有的master
主机名是否可以更改。
推荐阅读
- javascript - 通过根组件中的 React Context 传递 Redux 存储是否正确?
- java - 无法通过 Java API 在 Rally 中更新用户故事
- c# - 如何在实时图表中隐藏背景网格线?
- kubernetes - Openshift:获取当前的 pod 名称
- python - Python中的正则表达式
- android - Android更改edittext的默认“粘贴”弹出文本颜色
- amazon-web-services - AWS ECS - 在一个 ALB 中注册多个 ECS 集群
- git - 让 Git 日志统计数据有自己的列?
- android - Flutter 应用程序:导航到下一个屏幕时需要终止屏幕
- python - 为什么 numpy 1.14 轮 float16 65504 到 65500