The K8 repository builds a multi-node K8 cluster using rke2 and installs Helm. To set up the K8 repository, you need to provide the following:
-
Node configurations with IP addresses in the host.ini file.
- You can specify both master and worker nodes.
-
rke2 configuration parameters, such as the rke2 version, in the ./vars/main.yml file.
-
Rke2 cluster parameters file and path set in /vars/main.yml
-
run
make k8s-install
The repository will build a multi-node cluster. To check the cluster, run the following command on the master node:
sudo /var/lib/rancher/rke2/bin/kubectl get nodes --kubeconfig /etc/rancher/rke2/rke2.yaml
kubectl get nodes
sudo /var/lib/rancher/rke2/bin/kubectl get nodes --kubeconfig /etc/rancher/rke2/rke2.yaml