Need help installing K3s in fully offline mode (air-gapped)

Hello everyone,

I’m currently working on a project that requires installing K3s in a fully offline environment (air-gapped). However, I’m running into some challenges and would greatly appreciate your help in setting this up.

Context:

  • The environment is completely isolated with no internet access.
  • I’m working on Ubuntu 22.04 machines.
  • I need to deploy K3s along with all its dependencies, including Docker images and required packages, in a fully self-contained manner.

What I’ve tried so far:

  1. Manually downloading the K3s executable.
  2. Exporting the required Docker images using k3s-airgap-images.
  3. Setting up a local Docker registry.
  4. Creating a script to install dependencies using pre-downloaded Debian packages.

Problems encountered:

  • Some components fail to find the correct images, even when pointing to my local registry.
  • Configuring certificates for the local registry seems to be an issue.
  • There are errors related to missing dependencies that I haven’t been able to identify.

What I’m looking for:

  • A clear, tested method for installing K3s in fully offline mode.
  • A detailed procedure for preparing an air-gapped environment (including images and necessary dependencies).
  • Any documentation or feedback from similar experiences.

Thank you in advance for your help and suggestions! Feel free to ask if you need more details about my setup.

This guy appears to have a fairly detailed write-up