Bootstrap Procedure
This guide details the process for bootstrapping the Kubernetes cluster using the automated tooling provided by the operating system.
Prerequisites
- Access to the
lucynode (the designated bootstrap node). - Root privileges (via
sudo).
Bootstrapping the First Node (Lucy)
The lucy profile includes a specialized helper script initKubeadm that automates the initialization process.
SSH into Lucy:
bashssh user@lucyRun the Initialization:
bashsudo initKubeadm
What this script does:
- Deploys kube-vip: Installs the static pods required for the High Availability VIP.
- Initializes Cluster: Runs
kubeadm initusing the pre-generated config at/etc/kubernetes/kubeadm/bootstrap.yaml. - Configures Access: Sets up
kubectlfor the root user and the calling user. - Generates Join Tokens: Extracts and displays the command needed to join the other control plane nodes.
Joining Other Nodes (Makise & Quinn)
After initKubeadm completes successfully on lucy, it will output a command in the following format:
bash
joinCPKubeadm <TOKEN> <CERT_KEY>- Copy the Command: Take the
joinCPKubeadm ...command output by the script. - Run on Other Nodes: SSH into
makiseandquinnand execute the command.
bash
# On makise and quinn
sudo joinCPKubeadm <TOKEN> <CERT_KEY>This will join them to the cluster as high-availability control plane replicas.
