kubernetes-bootstrapping/01-cluster-bootstrap/README.md

20 lines
655 B
Markdown

# 01 | Cluster Bootstrap
Assumption is that an external load balancer is already configured for the cluster control plane IP address. Initialize the cluster on one control node, but do not join any other nodes to it yet.
```bash
# Only run on one control plane node - do not join other nodes until after CNI is configured
sudo kubeadm init --config cluster-config.yaml --upload-certs
```
Copy kube admin config to local profile. This is also a good time to copy it to your desktop with SCP or something.
```bash
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
```