kelseyhightower / kubernetes-the-hard-way

Bootstrap Kubernetes the hard way. No scripts.
Apache License 2.0
41.26k stars 14.12k forks source link

How control plane/worker nodes identified by the cluster #639

Open vinusorout opened 3 years ago

vinusorout commented 3 years ago

Hello,

Lets say I have 4 control plane in a subnet, and I want three of them to connect to one cluster and one to another cluster. Similarly with 4 worker nodes in same subnet, I want three to connect to one cluster and one to other cluster.

I know it will be a bad design but I just want to understand how cluster consider a node its control plane/worker node, Is it governed by the certificates? Please provide some details if possible!

vinusorout commented 3 years ago

If I am not wrong it is identified by the .kubeconfig created for kubelets and kube-apiserver file “—server”option?