Installing snapd

Installing
snapd

Install
snapd
on each system intended for the cluster.
snapd
is the package manager used to install MicroK8s.
Ubuntu typically comes with
snapd
pre-installed. If it is missing, run the following command on each system:
sudo apt-get install -y snapd
For Red Hat, perform the following on each system:
  1. Install the EPEL repository:
    sudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
  2. Install snapd:
    sudo dnf install -y snapd
  3. Enable classic snaps (if not already present):
    if [ ! -d /snap ] && [ ! -L /snap ]; then sudo ln -s /var/lib/snapd/snap /snap fi
  4. Start and enable snapd services:
    sudo systemctl enable --now snapd.socket snapd.service
  5. Wait for the snap to be ready:
    sudo snap wait system seed.loaded