Torch Installation using KOTS CLI
Acceldata Torch uses Replicated KOTS to deploy to Kubernetes environment. For a manual installation and deployment the user is expected to use the Replicated KOTS Admin Console. The steps for the same are listed here.
However, users may want to automate the installation and deployment using the KOTS CLI. The following section explains the steps for the same.
Online Image Registry Installation/Upgrade
The following section explains the steps for the automation of the installation and deployment using KOTS CLI for an online image registry. For application images available in online registry, perform the following:
Installation
The user can create a custom .yaml file by downloading the config.yaml for the first time from an existing cluster using the following:
Once completed, for a new cluster, install the kots application and copy configuration of admin-console automatically using:
Upgrade
For subsequent application upgrades, execute:
KOTS Admin Console Configuration Update
For KOTS Admin Console configuration changes, execute the following steps:
- Connect to the cluster where the configuration change must be performed.
- Execute the following command and download the application manifests:
- The user can make changes as relevant to use case, in the config.yaml file downloaded in the previous step. The use case, which user would have originally performed in the Admin Console UI.
- Execute the following command:
- Next, execute the following command(this command will update the Admin Console and restart the relevant pods):
Airgapped Installation/Update
The following section describes the Acceldata Torch installation and deployment using the Replicated KOTS CLI in an air-gapped environment. An air-gapped environment differs from an online installation in the fact that the Kubernetes cluster does not have access to internet. Hence, one fundamental step in this regard is to upload the air-gap bundle (containing KOTS Admin Console images and Acceldata Torch application images) to a private registry and provide credentials for the same to KOTS.
The following section explains the pre-requisites that must be fulfilled for a successful installation of KOTS Admin Console and Acceldata Torch in an air-gapped environment:
- The customer license must have Air-gap bundle build enabled for automated releases made to the customer’s channel.
- In the private registry to be used for this purpose, create the following repositories :
The image prefix used here is the name of the Kubernetes namespace where the KOTS Admin Console and Acceldata Torch application will be deployed. You must use this convention.
Also, while creating repository in ECR, you must not enable the Registry immutability toggle. Enabling this might lead to install/update failures.
- Now, download the Acceldata Torch Air-gap bundle as provided.
For the Replicated KOTS admin console air-gap bundle and Replicated KOTS CLI installer, execute the following commands :
- Execute the following command to install the KOTS CLI :
- Execute the following command to download the KOTS Admin Console air-gap bundle:
Installation
For a first time installation on a cluster, perform the following:
The Token used to access the ECR repository is valid only for 12 hours.
- Store the ECR repository access token for the user credentials in an environment variable as follows:
- Push the KOTS admin console images to the private ECR registry:
- Push the Torch application air-gap bundle to the private ECR registry:
- At this step, you can run any scan on the images for verification and the follow the subsequent steps for Torch application installation.
- Install the KOTS Admin Console using the following command:
- Install the Acceldata Torch application using the following command:
Upgrade
- Download the Acceldata Torch application air-gap bundle from the download site as shared.
- Push the Acceldata Torch application images in the air-gap bundle using the following command:
- Next, execute the following command:
KOTS Admin Console Configuration Update
Sometimes, there might be a requirement that any specific configuration of the Torch application be changed from the KOTS admin console using the GUI. The following section explains the KOTS CLI approach for performing the same:
- Connect to the cluster where the configuration change needs to be performed.
- Execute the following command and download the application manifests:
- Make changes to the KOTS Admin Console config.yaml file present at <path>/torch/upstream/userdata/config.yaml.
- Once completed, upload the changes using the following command. The following upload will be visible in the KOTS admin console as “KOTS Upload“.
- Execute the following command to deploy the configuration change made: