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

20 lines
548 B
Markdown

# 05-Cluster-Bootstrap
Assumption is that an external load balancer is already configured for the cluster control plane IP address. Initialize the cluster
```bash
sudo kubeadm init --config cluster-config.yaml --upload-certs
```
Copy kubectl config
```bash
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
```
Before you join other nodes, deploy the CNI in 06! If you don't, there is sometimes an issue where the br0 adapter will use the crio CNI configuration.