Skip to Content
Platform
Installation
Platform: Air-gapped Environment

Platform: Air-gapped Environment

The RSH platform can be installed in an air-gapped Kubernetes cluster, that is, a cluster whose nodes have no access to the internet. In such an environment, container images are not pulled from the Regnology delivery registry but from a private container registry inside the client’s network.

This page describes how to obtain the RSH platform delivery package, transfer the container images to a private registry, install the chart, and verify the installation. It complements the Platform Installation Guide, which describes the connected installation.

Network assumptions

The procedure on this page relies on the following assumptions about network access:

HostRequired access
Transfer hostdelivery.regnology.net (HTTPS) and the private container registry
Kubernetes nodesThe private container registry only; no internet access
Workstation running helmThe Kubernetes API server; access to delivery.regnology.net is not required
  • Access to delivery.regnology.net is only needed while the chart and images are copied. It is not needed at runtime.
  • If no single host can reach both the delivery registry and the private registry, the images are exported to archive files, moved across the network boundary, and imported on the other side. See Fully disconnected transfer.

Delivery package

The RSH platform is delivered as a Helm chart (delivery.regnology.net/rsh-charts/rsh). The chart contains everything required for an air-gapped installation:

FilePurpose
images.txtAll container images of the release, including the images of the sub-charts
copy_images.pyHelper script that copies every image in images.txt with skopeo

The images.txt file is generated for each release from the chart’s default values, with NUI enabled. It lists:

  • the NATS server, JetStream initialization (natscli), and the readiness wait container (busybox),
  • NUI (NATS web UI),
  • initialization,
  • the IAM sub-chart images (see IAM).

The authoritative list, including the exact tags, is the images.txt file of the chart version being installed. A component that is disabled by default and not enabled when the list is generated is not included; if such a component is enabled, its images must be mirrored separately.

All images are referenced as <global.imageRegistry>/<image>:<tag>. Each image therefore has to be stored directly under the private registry path, without additional path segments. The NATS, NUI, and initialization images each have an optional *.image.registry value; when left empty, they default to global.imageRegistry, so no per-component settings are required.

Warning

Images not listed in images.txt

The CloudNativePG operator and the PostgreSQL image it deploys are not part of images.txt. Both must be mirrored separately. See CloudNativePG images.

Prerequisites

  • A private container registry reachable from all Kubernetes nodes, with a project or repository that accepts pushes.
  • The prerequisites of the connected installation, see Platform Installation Guide, with the CloudNativePG operator installed from mirrored images.
  • On the transfer host:
    • Helm  v3.17.2 or later,
    • skopeo ,
    • Python 3.8 or later (only required for copy_images.py).
  • Delivery registry credentials ($DELIVERY_USERNAME / $DELIVERY_PASSWORD).
  • Private registry credentials with push permission ($PRIVATE_REGISTRY_USERNAME / $PRIVATE_REGISTRY_PASSWORD).

Obtain the delivery package

Log in to the delivery registry and pull the RSH platform chart in the required version:

echo "$DELIVERY_PASSWORD" | helm registry login delivery.regnology.net \ -u "$DELIVERY_USERNAME" --password-stdin helm pull oci://delivery.regnology.net/rsh-charts/rsh \ --version <chart-version> --untar

The chart is extracted to the rsh directory. Keep this directory: it is used both to copy the images and to install the chart, so the installation itself does not need access to the delivery registry.

Copy the container images

The images can be copied with any tool that supports copying between registries, such as skopeo, crane, or docker. The approaches below use skopeo.

Using copy_images.py

The copy_images.py script reads every images.txt file below the chart directory and copies each image to the private registry:

python3 ./rsh/copy_images.py \ --chart-path ./rsh \ --src-registry delivery.regnology.net \ --src-creds "$DELIVERY_USERNAME:$DELIVERY_PASSWORD" \ --dest-registry <private-registry> \ --dest-creds "$PRIVATE_REGISTRY_USERNAME:$PRIVATE_REGISTRY_PASSWORD"
ArgumentDescription
--chart-pathDirectory searched recursively for images.txt files. Defaults to the current directory.
--src-registrySource registry prefix. Credentials are applied to images whose name starts with this prefix. Repeatable.
--src-credsDelivery registry credentials in username:password format, one per --src-registry.
--dest-registryPrivate registry, optionally with a path, for example registry.example.com/rsh.
--dest-credsPrivate registry credentials in username:password format. Required.
--preserve-structureKeeps the full repository path of each image. Do not use it: the chart expects images directly under the registry path.

The script copies all architectures of each image, retries failed copies, and stops with an error if an image cannot be copied after repeated attempts. The value passed as --dest-registry is the value to set as global.imageRegistry.

The script does not verify TLS certificates on either the source or the destination registry.

Using skopeo directly

Without Python, the same result is achieved with a loop over images.txt. The value of DEST_REGISTRY, including any path, is the value to set as global.imageRegistry. Unlike copy_images.py, the loop verifies TLS certificates; if the private registry uses a certificate signed by an internal certificate authority, the CA certificate is passed with --dest-cert-dir <directory>.

DEST_REGISTRY=<private-registry> while IFS= read -r image; do [ -z "$image" ] && continue name="${image##*/}" skopeo copy --multi-arch=all \ --src-creds "$DELIVERY_USERNAME:$DELIVERY_PASSWORD" \ --dest-creds "$PRIVATE_REGISTRY_USERNAME:$PRIVATE_REGISTRY_PASSWORD" \ "docker://$image" "docker://$DEST_REGISTRY/$name" done < ./rsh/images.txt

Fully disconnected transfer

If no host can reach both registries, each image is first written to an archive on a connected host, then moved across the network boundary together with the rsh chart directory, and finally pushed to the private registry from a host inside the air-gapped network.

On the connected host, export each image to one archive file in the images directory:

mkdir -p images while IFS= read -r image; do [ -z "$image" ] && continue name="${image##*/}" skopeo copy --multi-arch=all \ --src-creds "$DELIVERY_USERNAME:$DELIVERY_PASSWORD" \ "docker://$image" "oci-archive:images/${name//[:\/]/_}.tar" done < ./rsh/images.txt

Transfer the images and rsh directories with the approved transfer medium. Then, inside the air-gapped network, push each archive to the private registry. The loop reads the same images.txt file to restore the original image names:

DEST_REGISTRY=<private-registry> while IFS= read -r image; do [ -z "$image" ] && continue name="${image##*/}" skopeo copy --multi-arch=all \ --dest-creds "$PRIVATE_REGISTRY_USERNAME:$PRIVATE_REGISTRY_PASSWORD" \ "oci-archive:images/${name//[:\/]/_}.tar" "docker://$DEST_REGISTRY/$name" done < ./rsh/images.txt
Note

Repeat for every release

Image tags change between releases. The copy must be repeated with the images.txt file of each new chart version before upgrading.

CloudNativePG images

The CloudNativePG operator is a prerequisite of the RSH platform and is installed once per cluster. Neither the operator image nor the PostgreSQL image it uses for database clusters is listed in images.txt.

Copy both images to the private registry:

skopeo copy --multi-arch=all \ --dest-creds "$PRIVATE_REGISTRY_USERNAME:$PRIVATE_REGISTRY_PASSWORD" \ docker://ghcr.io/cloudnative-pg/cloudnative-pg:<operator-version> \ docker://<private-registry>/cloudnative-pg:<operator-version> skopeo copy --multi-arch=all \ --dest-creds "$PRIVATE_REGISTRY_USERNAME:$PRIVATE_REGISTRY_PASSWORD" \ docker://ghcr.io/cloudnative-pg/postgresql:<postgresql-version> \ docker://<private-registry>/postgresql:<postgresql-version>

In a fully disconnected transfer, both images are exported to archive files and imported into the private registry in the same way as the images from images.txt.

Install the operator from its Helm chart  with the images pointing to the private registry. Database clusters that do not set an image use the operator default, so the mirrored PostgreSQL image is configured as POSTGRES_IMAGE_NAME:

cloudnative-pg-values.yaml
image: repository: <private-registry>/cloudnative-pg tag: <operator-version> imagePullSecrets: - name: <image-pull-secret> # the CloudNativePG chart expects objects with a name key config: data: POSTGRES_IMAGE_NAME: <private-registry>/postgresql:<postgresql-version>

Use the PostgreSQL version that matches the default of the installed operator version.

Configure the Helm values

Point the chart at the private registry. The global values apply to the RSH platform and to its sub-charts:

rsh-values.yaml
global: imageRegistry: <private-registry> # Option 1: let the chart create the pull secret <release-name>-dockerconfig imageRegistryUsername: <private-registry-username> imageRegistryPassword: <private-registry-password> imagePullSecrets: - <release-name>-dockerconfig # Option 2: reference an existing pull secret instead # imagePullSecrets: # - <existing-pull-secret>
Note

Format of global.imagePullSecrets

Each entry is the plain name of a secret, not an object with a name key. The chart renders every entry as - name: <entry> in the pod specification.

KeyDescription
global.imageRegistryPrivate registry, including the optional path, that holds the copied images. Must equal --dest-registry or DEST_REGISTRY, including any path.
global.imageRegistryUsernameUsername for the pull secret created by the chart (optional).
global.imageRegistryPasswordPassword for the pull secret created by the chart (optional).
global.imagePullSecretsPull secrets used by all pods. List <release-name>-dockerconfig when the chart creates the secret, or an existing secret.

When both global.imageRegistryUsername and global.imageRegistryPassword are set, the chart creates a secret of type kubernetes.io/dockerconfigjson named <release-name>-dockerconfig. The secret is only used when it is listed in global.imagePullSecrets. No pull secret is required if the cluster nodes can pull from the private registry without credentials.

The remaining values, such as object storage, are the same as for a connected installation. See Platform Installation Guide and Helm Chart Configuration.

Install the platform

Install the chart from the local rsh directory. No connection to the delivery registry is needed:

helm upgrade -i <release-name> ./rsh \ -n <namespace> \ -f rsh-values.yaml

Verify the installation

  1. Check that all pods start and that no pod is in ImagePullBackOff or ErrImagePull state:

    kubectl get pods -n <namespace>
  2. Check that every image is pulled from the private registry:

    kubectl get pods -n <namespace> \ -o jsonpath='{range .items[*]}{range .spec.containers[*]}{.image}{"\n"}{end}{end}' \ | sort -u

    Every image must start with <private-registry>/.

IAM

The IAM module is a sub-chart of the RSH platform and its images are part of images.txt, so they are copied together with the platform images. Keycloak stores its data in a PostgreSQL cluster managed by the CloudNativePG operator by default, which relies on the mirrored PostgreSQL image described in CloudNativePG images.

No separate procedure is required for IAM. The IAM image list, the Keycloak database options, and the additional IAM verification steps are described in IAM: Air-gapped Environment.

Separately installed modules

The Datacollection and Licensing modules are installed from their own charts and are not covered by the images.txt file of the RSH platform chart. Their images must be mirrored separately before these modules are installed in an air-gapped cluster. Contact the respective Regnology product team for the image list and any module-specific steps.

Differences from a connected installation

AspectConnected installationAir-gapped installation
Image sourcedelivery.regnology.netPrivate registry (global.imageRegistry)
Chart sourceoci://delivery.regnology.net/rsh-chartsLocal chart directory pulled with helm pull
Pull secretDelivery registry credentialsPrivate registry credentials
PostgreSQL imagePulled by CloudNativePG from ghcr.ioMirrored and set as the operator default
Upgradeshelm upgrade against the delivery registryRepeat the image copy, then helm upgrade from local chart

Troubleshooting

SymptomWhat to check
ImagePullBackOff on a platform or IAM podThe image exists in the private registry with the exact name and tag from images.txt; global.imageRegistry equals --dest-registry (or DEST_REGISTRY), including any path; the pull secret is listed in global.imagePullSecrets.
Image path contains extra segmentsThe images were copied with --preserve-structure, or global.imageRegistry differs from --dest-registry.
PostgreSQL pods stay in ImagePullBackOffPOSTGRES_IMAGE_NAME is set in the CloudNativePG operator configuration and the image is mirrored.
copy_images.py fails with an authentication error--src-registry matches the prefix of the image names in images.txt; both credential pairs are correct.