You can check the way to create a cluster with one node, which is through cluster / get-kube-local.sh . It shows you how you can use hypercubes to create a cluster.
If you want to get into the baseline data, another method is to check the contents of hack / local-up-cluster.sh . This calls each component separately, for example:
- Kube apiserver
- Kube proxy
- Kube DNS
- Kube-controller-manager
One could use the same steps to create a cluster with two nodes, as mentioned in your question.
source share