Introduction
This guide provides step-by-step instructions to deploy the W&B Platform in air-gapped customer-managed environments. Use an internal repository or registry to host the Helm charts and container images. Run all commands in a shell console with proper access to the Kubernetes cluster. You could utilize similar commands in any continuous delivery tooling that you use to deploy Kubernetes applications.Step 1: Prerequisites
Before starting, make sure your environment meets the following requirements:- Kubernetes version >= 1.28
- Helm version >= 3
- Access to an internal container registry with the required W&B images
- Access to an internal Helm repository for W&B Helm charts
Step 2: Prepare internal container registry
Before proceeding with the deployment, you must ensure that the following container images are available in your internal container registry. These images are critical for the successful deployment of W&B components. W&B recommends that you either follow your organization’s own processes for managing your container registry, or that you use WSM to prepare it. You are responsible for tracking the W&B Operator’s requirements, as well as checking for and applying updated images regularly.Core W&B component containers
Dependencies
docker.io/bitnamilegacy/redis
: W&B depends on a single-node Redis 7.x deployment to handle job queuing and data caching used by W&B’s components. For convenience during testing and development of proofs of concept, W&B Self-Managed deploys a local Redis deployment that is not appropriate for production deployments. To use the local Redis deployment, ensure that this image is available in your container registry.docker.io/otel/opentelemetry-collector-contrib
: W&B depends on the OpenTelemetry agent to collect metrics and logs from resources at the Kubernetes layer for display in W&B.quay.io/prometheus/prometheus
: W&B depends on Prometheus to capture metrics from various components for display in W&B.quay.io/prometheus-operator/prometheus-config-reloader
: A required dependency of Prometheus.
Install WSM
Install WSM using one of these methods.WSM requires a functioning Docker installation.
Bash
Run the Bash script directly from GitHub:GitHub
Download or clone WSM from the W&B managedwandb/wsm
GitHub repository at https://github.com/wandb/wsm
. See the wandb/wsm
release notes for the latest release.
List images and their versions
Get an up to date list of image versions usingwsm list
.
Download images
Download all images in the latest versions usingwsm download
.
.tgz
archive for each image to the bundle
directory.
Step 3: Prepare internal Helm chart repository
Along with the container images, you also must ensure that the following Helm charts are available in your internal Helm Chart repository. The WSM tool can download the Helm charts, or you can download them manually from: Theoperator
chart is used to deploy the W&B Operator, which is also referred to as the Controller Manager. The platform
chart is used to deploy the W&B Platform using the values configured in the custom resource definition (CRD).
Step 4: Set up Helm repository
Now, configure the Helm repository to pull the W&B Helm charts from your internal repository. Run the following commands to add and update the Helm repository:Step 5: Install the Kubernetes operator
The W&B Kubernetes operator, also known as the controller manager, is responsible for managing the W&B platform components. To install it in an air-gapped environment, you must configure it to use your internal container registry. To do so, you must override the default image settings to use your internal container registry and set the keyairgapped: true
to indicate the expected deployment type. Update the values.yaml
file as shown below:
Step 6: Configure W&B Custom Resource
After installing the W&B Kubernetes operator, you must configure the Custom Resource (CR) to point to your internal Helm repository and container registry. This configuration ensures that the Kubernetes operators uses your internal registry and repository are when it deploys the required components of the W&B platform. Copy this example CR to a new file namedwandb.yaml
.
operator-wandb
Helm chart from your internal repository.
Replace all tags/versions with the versions that are available in your internal registry.
Step 7: Deploy the W&B platform
Now that the Kubernetes operator and the CR are configured, apply thewandb.yaml
configuration to deploy the W&B platform:
FAQ
Refer to the below frequently asked questions (FAQs) and troubleshooting tips during the deployment process:There is another ingress class. Can that class be used?
Yes, you can configure your ingress class by modifying the ingress settings invalues.yaml
.
The certificate bundle has more than one certificate. Would that work?
You must split the certificates into multiple entries in thecustomCACerts
section of values.yaml
.
How do you prevent the Kubernetes operator from applying unattended updates. Is that possible?
You can turn off auto-updates from the W&B console. Reach out to your W&B team for any questions on the supported versions. W&B supports a major W&B Server release for 12 months from its initial release date. Customers with Self-Managed instances are responsible for upgrading in time to maintain support. Avoid staying on an unsupported version. Refer to Release policies and processes.W&B strongly recommends customers with Self-Managed instances to update their deployments with the latest release at minimum once per quarter to maintain support and receive the latest features, performance improvements, and fixes.
Does the deployment work if the environment has no connection to public repositories?
If your configuration setsairgapped
to true
, the Kubernetes operator uses only your internal resources and does not attempt to connect to public repositories.