This document provides a step-by-step guide for installing SUSE Observability using Helm charts in an air-gapped environment. The process involves preparing the necessary Docker images and Helm charts on a host with internet access, transferring them to a host within a private network, copying Docker images to a private registry, and then deploying the Helm charts.
Scripts for downloading Docker images from the source registry (links will be provided later in this guide).
Network access and credentials to upload images to a private Docker registry.
A configured Kubeconfig to install the Helm charts on the target clusters.
Preparing the Docker Images and Helm Charts
Run the following commands on the local host to obtain the required Docker images and Helm charts:
Adding Helm repositories to the local Helm cache:
# Adding the Helm repository for SUSE Observabilityhelmrepoaddsuse-observabilityhttps://charts.rancher.com/server-charts/prime/suse-observabilityhelmrepoupdate
Fetching the latest versions of the charts. These commands will download TGZ archives of the charts:
# Downloading the chart for SUSE Observability# The file will be named suse-observability-k8s-A.B.C.tgzhelmfetchsuse-observability/suse-observability# Downloading the helper chart that generates values for SUSE Observability# The file will be named suse-observability-values-L.M.N.tgzhelmfetchsuse-observability/suse-observability-values
Downloading the Bash scripts to save Docker images:
# o11y-get-images.shcurl -LO https://raw.githubusercontent.com/StackVista/helm-charts/master/stable/suse-observability/installation/o11y-get-images.sh
# o11y-save-images.shcurl -LO https://raw.githubusercontent.com/StackVista/helm-charts/master/stable/suse-observability/installation/o11y-save-images.sh
# Make the scripts executablechmoda+xo11y-get-images.sho11y-save-images.sh
Extracting and Saving Docker Images:
# Extract the list of images from the Helm chart and save it to a file../o11y-get-images.sh-fsuse-observability-A.B.C.tgz>o11y-images.txt
Replace suse-observability-A.B.C.tgz with the actual filename of the chart archive downloaded earlier.*
# Save Docker images to an archive.# The script expects the file o11y-images.txt to contain the list of images used by SUSE Observability.# The Docker images will be saved to o11y-images.tar.gz../o11y-save-images.sh-io11y-images.txt-fo11y-images.tar.gz
Copying the Required Files to the Remote Host
Copy the following files from the local host to the host in the private network:
o11y-images.txt (List of images required by the SUSE Observability chart)
o11y-images.tar.gz (An archive with the SUSE Observability's Docker images)
Restoring Docker Images from the Archive to the Private Registry
Upload the images to the private registry:
# Load Docker images from the archive and push them to the private registry.# Replace <private-registry> with your private registry's URL.export DST_REGISTRY_USERNAME="..."export DST_REGISTRY_PASSWORD="..."./o11y-load-images.sh-dregistry.example.com:5043-io11y-images.txt-fo11y-images.tar.gz
If the destination registry doesn't use authentication the environment variables, DST_REGISTRY_USERNAME and DST_REGISTRY_PASSWORD must not be configured or have to be set to empty values.*
Installing SUSE Observability
Custom Helm values
Installing SUSE Observability Helm charts in an air-gapped environment requires overriding the registries used in Docker image URLs. This can be achieved by customizing Helm values.
Create a private-registry.yaml file with the following content:
This guide follows the Installation setup, but instead of using publicly available Helm and Docker repositories/registries, it uses pre-downloaded Helm archives and private Docker registries.