Adding a new node to the existing Kubernetes cluster

2/3/2019

I have an K8S cluster running with 6 nodes 1 Master and 5 minion nodes running on baremetal. 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. 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.

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". Then we will add the command 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 ?

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 ?

-- Kamesh
centos
etcd
kubernetes

1 Answer

2/3/2019

If you are adding new minion node you don't need to setup or configure etcd on the new minion. You need to setup Kubelet and kube proxy services and network service

-- P Ekambaram
Source: StackOverflow