Finalizing the Setup

Finalizing the Setup

If setting up a multi-node cluster, perform the following steps on the primary node after all nodes are set up and joined together to verify that everything is working.
  1. Wait for all nodes to be ready:
    sudo microk8s.kubectl wait nodes --for=condition=ready -l microk8s.io/cluster=true --timeout=3m
  2. Check the node count:
    sudo microk8s.kubectl get nodes
  3. For Rook-Ceph setups (multi-node configuration), wait for the Ceph cluster to be ready:
    sudo microk8s.kubectl wait cephclusters.ceph.rook.io -n rook-ceph trifecta-rook-ceph --for=jsonpath='{.status.phase}'=Ready --timeout=10m
    If you followed the instructions in the Setting Up Multi-Node Storage section, run this command.
  4. For Rook-Ceph setups (multi-node configuration), wait for Ceph block pools to be ready:
    sudo microk8s.kubectl wait cephblockpools.ceph.rook.io -n rook-ceph --all --for=jsonpath='{.status.phase}'=Ready --timeout=10m
  5. If base-images.tar exists, import the base images.
    if [ -f base-images.tar ]; then sudo microk8s ctr image import base-images.tar sudo microk8s ctr image list | grep trifecta | awk '{print $1}' | xargs -rI '{}' sudo microk8s ctr image label '{}' io.cri-containerd.pinned=pinned fi