3.0.X
Search…
⌃K

Air-Gapped Installations

This page describes the instructions for deploying TrilioVault for Kubernetes (TVK) in a network-restricted environment

Red Hat OpenShift

TrilioVault for Kubernetes has been designed to support installation in a restricted or disconnected network as part of the OLM framework. Please follow the instructions from the OpenShift Documentation and refer to this detailed video to install TVK in an offline environment.

Others Distributions

The following documentation provides a method to install Triliovault for Kubernetes inside an air-gapped environment (a.k.a dark site), i.e., one with either no internet or just partial internet connectivity to run the installation.
MacOS Users: Installation script requires GNU-based getopt package and iproute2mac package

Prerequisites

  1. 1.
    A host with 20Gb free disk space if you install a local registry.
  2. 2.
    The host must have connectivity to the cluster.
  3. 3.
    Container Runtime should be installed and running on the host (docker/podman/crictl/nerdctl)
  4. 4.
    If you are installing a local registry, the IP of the host machine and port (by default 443) should not be blocked for cluster nodes or should not have other services like Nginx running.
  5. 5.
    Check if any service is already running on the specified port. If so, mention another port with —port option while running run.sh

Download

Perform the following steps to download the required files:
  • Download the installation package to the host
curl -O https://storage.googleapis.com/triliovault-airgap/<version>/installer.tar.gz
  • Untar the installer using the command:
$ tar -xvzf installer.tar.gz
  • Check that the extracted code looks like this:
$ tree installer
installer
├── README.md
├── certs
│ ├── fullchain.pem
│ └── privkey.pem
├── containerImages
│ ├── alpine.tar.gz
│ ├── registry.tar.gz
│ └── trilioImages.tar.gz
├── helm
├── k8s-triliovault-operator-<version>.tgz
└── run.sh
2 directories, 9 files
  1. 1.
    The wildcard certificates provided inside the certs directory has an expiry.
  2. 2.
    You can download the traefik certs and replace them inside the folder if they appear to be expired.
  3. 3.
    You can also pass your certs with --cert-file, --key-file, and --registry-host options.
  4. 4.
    Validate the certs with openssl x509 -in <cert-name.crt> -text -noout

Installation

run.sh — library for setting up container registry with trilio images.
Usage:
# Create local container registry & load Trilio images.
bash run.sh --setup
# Create local container registry on a specified port. (Defaults to port 443).
bash run.sh --setup --port <port-number>
# Create local container registry using custom hostname and ssl certificates & load Trilio images
bash run.sh --setup --registry-host <registry_host> --cert-file <path-to-cert-file> --key-file <path-to-key>
# Load Trilio images on existing container registry without authentication
bash run.sh --registry <registry-name>
# Load Trilio images on existing container registry with authentication
bash run.sh --registry <registry-name> --user <username> --pass <password>
Options:
--help Show detailed help with options.
--registry <registry_name> Existing Container Registry name.(If not provided, local container registry is setup)
--user <username> Existing Container registry username.(If the given container registry requires auth)
--pass <password> Existing Container registry password.(If the given container registry requires auth)
--setup Setup container registry.
--port <registry_port> Setup container registry on a specified port. (Defaults to 443)
--registry-host <registry_host> Setup container registry with valid domain name if TLS Certificate provided
--cert-file <path-to-cert-file> Setup container registry with SSL/TLS certificate
--key-file <path-to-key-file> Setup container registry with SSL/TLS private key

User Actions

  • Local secure private container registry setup with wildcard certificates. (Not recommended for production use) :
    bash installer/run.sh --setup
  • Local secure private container registry setup on the specified port :
    bash installer/run.sh --setup --port 5000
  • Local secure private container registry setup with user-provided certificates. (Not recommended for production use) :
    bash installer/run.sh --setup --registry-host <registry-hostname> --cert-file <path-to-cert-file> --key-file <path-to-key-file>
  • Use an already existing container registry :
    1. 1.
      Container Registry with authentication :
      bash installer/run.sh --registry <registry-name> --user <registry-username> --pass <registry-pass>
    2. 2.
      Container Registry without any authentication :
      bash installer/run.sh --registry <registry-name>

Upgrade TVK

Perform the following steps to download and install the upgrade files required:
  1. 1.
    Download the newer version installer package from the GCS bucket here: curl -O https://storage.googleapis.com/triliovault-airgap/<version>/installer.tar.gz
  2. 2.
    Unzip installer.tar.gz
  3. 3.
    Run helm upgrade using the following command:
helm upgrade --install <release-name> <k8s-triliovault-operator-*.tgz> --set registry=<registry-name>