Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

The commands have been tested on Ubuntu Server 20.04 LTS, SUSE Linux Enterprise Server 15 SP4 and RHEL 8.109.2 and 9.4.

Note

For RHEL, K3s needs the following package to be installed: k3s-selinux (repo rancher-k3s-common-stable) and its dependencies container-selinux (repo rhel-8-appstream-rhui-rpms) and policycoreutils-python-utils (repo rhel-8-baseos-rhui-rpms). On systems without access to online repositories, the corresponding *.rpm package for each of the above dependencies should be copied to the server first and installed locally.
Also, firewalld nm-cloud-setup.service and nm-cloud-setup.timer must be disabled and the server restarted before the installation.
Click here for more information.

...

  1. Extract the downloaded file: tar -xf gv-platform-$VERSION.tar (REPLACE $VERSION with the version from a downloaded tar file)

  2. Prepare K3s for air-gap installation:

    Code Block
    languagebash
    # mkdir -p /var/lib/rancher/k3s/agent/images/
    # gunzip -c assets/k3s-airgap-images-amd64.tar.gz > /var/lib/rancher/k3s/agent/images/airgap-images.tar
    # cp assets/k3s /usr/local/bin && chmod +x /usr/local/bin/k3s
    # tar -xzf assets/helm-v3.8.2-linux-amd64.tar.gz
    # cp linux-amd64/helm /usr/local/bin
  3. Before installation, it’s recommended to run automatic checks (as root; PRODUCT_NAME is either “synergy” (endpoint agent) or “dspm“ (dspm without endpoint agent) or “ultimate“ (dspm + endpoint agent). If unsure use “ultimate“):

    Code Block
    # cat scripts/k3s.sh | PRODUCT_NAME=ultimate ONLY_PRECHECK=true bash -


    Install K3s:

    Code Block
    languagebash
    # cat scripts/k3s.sh | INSTALL_K3S_SKIP_DOWNLOAD=true K3S_KUBECONFIG_MODE="644" SKIP_NETWORK_CHECKS=true sh -s - server --node-name=local-01

...