You need to do certain configurations to make sure that JAS works without any issues in an air-gapped environment. After these configurations, you can proceed with the installation.
Port Configuration
Ensure that you open the following ports before you proceed.
Between Xray and k3s master VM - 6443,10250
Between k3s VMs - Refer the k3s documentation
Between k3s VMs and Artifactory - 8082
Artifactory Configuration
Run the following steps to configure Artifactory.
Xray Configuration
You need to do the Xray configuration in the Xray node or just the first node if you use an HA setup.
Install Docker in the air-gapped Xray node so that you can run the Ansible playbook to set up the k3s infrastructure.
Run the following commands from a machine that has Internet access.
docker pull releases-docker.jfrog.io/ansible/ansible:2.15.02) docker save releases-docker.jfrog.io/ansible/ansible:2.15.0 | gzip > ansible.tar
Copy
ansible.tar
vfile to the Xray machine.Run the following command in the Xray machine.
docker load < ansible.tar
Make the following changes to the Xray System YAML and restart the Xray service.
server: dbSync: version3: enabled: true
k3s Node Configuration
Configure k3s node VMs. We recommend that you use three VMs - 1 as master and 2 as workers.
Create the VMs for k3s.
Download the following k3s resources from a machine that was Internet access.
k3s binaries (k3s version - 1.24.10+k3s1)
wget https://releases.jfrog.io/artifactory/run/k3s/1.24.10/k3s
k3s airgapped images
wget https://releases.jfrog.io/artifactory/run/k3s/1.24.10/k3s-airgap-images-amd64.tar.gz
Copy k3s binary to
/usr/local/bin
in the k3s VM and make it executable.sudo cp k3s /usr/local/bin cd /usr/local/bin chmod +x k3s
Copy k3s images to
/var/lib/rancher/k3s/agent/images/
in the k3s VM.sudo mkdir -p /var/lib/rancher/k3s/agent/images/ sudo cp k3s-airgap-images-amd64.tar.gz /var/lib/rancher/k3s/agent/images/