Airgapped Installation
Recommended for on-premises installations, in an environment that has no inbound or outbound paths available to internet traffic
Pre-requisites
-
Make sure there is a bidirectional connection b/w the following components/services:
- VCS <—> K8s Cluster
- Image Registry <—> K8s Cluster
-
v1.19 <=
K8s Version
<= v1.24
Installation
Download airgap bundles
Visit the customer-specific download portal with the password provided in the email that you’ll receive from DeepSource and download KOTS Airgap Bundle, and DeepSource Airgap bundle.
If you haven’t received the email with your download portal and password, reach out to enterprise-support@deepsource.io
Install KOTS
Ref: https://docs.replicated.com/reference/kots-cli-getting-started#manually-download-and-install
Download KOTS
MacOS (AMD and ARM):
Linux (AMD):
Linux (ARM):
Extract KOTS Archive
Install KOTS as a kubectl plugin
Rename the kots
executable to kubectl-kots
and move it to one of the directories in your $PATH. This ensures the system can access the executable when running kots CLI commands.
Run one of the following commands, depending on if you have write access to the target directory:
- You have write access to the directory:
Replace PATH_TO_TARGET_DIRECTORY
with the path to a directory that is in your PATH environment variable. For example, /usr/local/bin
.
- You do not have write access to the directory:
- Replace
PATH_TO_TARGET_DIRECTORY
with the path to a directory that is in your PATH environment variable. For example,/usr/local/bin
.
Verify the installation:
Configure Image Registry (Docker V2 Compatible)
-
Harbor
- Create a new project (e.g.:
deepsource
), this project name is referred asregistry-namespace
further in the docs - Create a user with R/W access to the project and note down the username and password for further use.
- Create a new project (e.g.:
Upload KOTS Specific Images to the Image Registry
Ref: https://docs.replicated.com/enterprise/updating-app-manager#air-gap-environments
- Upload the KOTS Airgap Bundle to your image registry; this will upload kotsadm (the admin console) and the components KOTS requires.
- Run the command from the directory where you downloaded the bundle:
For the Harbor image registry, the <registry-namespace>
will usually be the project name.
To update the App Manager, refer: https://docs.replicated.com/enterprise/updating-app-manager#air-gap-environments
Install/Upgrade DeepSource
Install
To install DeepSource Enterprise Server, run the following command from the directory where you downloaded the airgap bundle:
Upgrade
Ref: https://docs.replicated.com/enterprise/updating-apps#air-gapped-installations-on-an-existing-cluster
To upgrade DeepSource Enterprise Server, run the following command from the directory where you downloaded the airgap bundle:
Configure DeepSource
Visit the Admin Console
- Create a port-forward using
kubectl port-forward -n deepsource service/kotsadm 3000:3000
- Log in using the
<admin-console-password>
password that was set during the installation step
App Manager Configuration
Visit /docs/enterprise-server-configuration to configure the app from admin console.