简体   繁体   English

向现有的Kubernetes集群添加新节点

[英]Adding a new node to the existing Kubernetes cluster

I have an K8S cluster running with 6 nodes 1 Master and 5 minion nodes running on baremetal. 我有一个K8S集群,它在裸机上运行6个节点1个Master和5个Minion节点。 I wanted to add a new minion node which i tried testing the procedure in VM and was succesfull the new node joining the cluster multiple times. 我想添加一个新的奴才节点,该节点尝试在VM中测试该过程,并成功使新节点多次加入集群。 However i have a question which i wanted to get clarified. 但是,我有一个想澄清的问题。

In general we first need to bring the etcd service up which the new node should join the existing etcd cluster. 通常,我们首先需要启动etcd服务,新节点应将其加入现有的etcd集群。

Afetr installing the needed files on the new minion node and adding the new node details + the existing node under /etc/etcd/etcd.conf file and making the INITIAL_CLUSTER_STATE to set to "EXISTING". 然后在新的minion节点上安装所需的文件,并在/etc/etcd/etcd.conf文件下添加新的节点详细信息+现有节点,并将INITIAL_CLUSTER_STATE设置为“ EXISTING”。 Then we will add the command etcdctl add member 然后我们将添加命令etcdctl add member

My question is that on other existing nodes (Master and minion) do we need to add the new node details in the /etc/etcd/etcd.conf file or it is not required ? 我的问题是,在其他现有节点(Master和Minion)上,是否需要在/etc/etcd/etcd.conf文件中添加新的节点详细信息?

Atleast during the testing on the VM's i remember that unless i add the new node details in the existing nodes the etcd service on new node is not up completely.But i see the docs related to etcd adding new member it is not mentioned anywhere about the adding of new node details in the existing nodes under the file /etc/etcd/etcd.conf .. Can someone let me know if this file to be modified in existing nodes and update with new node details ? 在VM的测试过程中,Atleast记得,除非我在现有节点中添加新节点详细信息,否则新节点上的etcd服务不会完全启动。但是我看到与etcd相关的文档添加了新成员,关于该节点的任何地方都没有提及在文件/etc/etcd/etcd.conf下的现有节点中添加新的节点详细信息。有人可以让我知道是否要在现有节点中修改此文件并使用新的节点详细信息进行更新吗?

If you are adding new minion node you don't need to setup or configure etcd on the new minion. 如果要添加新的minion节点,则无需在新的minion上设置或配置etcd。 You need to setup Kubelet and kube proxy services and network service 您需要设置Kubelet和kube代理服务以及网络服务

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM