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:

Copy

Note: This is hosted in a repository for ease of access.

Once completed, for a new cluster, install the kots application and copy configuration of admin-console automatically using:

Copy

Upgrade

For subsequent application upgrades, execute:

Copy

KOTS Admin Console Configuration Update

For KOTS Admin Console configuration changes, execute the following steps:

  1. Connect to the cluster where the configuration change must be performed.
  2. Execute the following command and download the application manifests:
Copy
  1. 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.
  2. Execute the following command:
Copy
  1. Next, execute the following command(this command will update the Admin Console and restart the relevant pods):
Copy

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:

  1. The customer license must have Air-gap bundle build enabled for automated releases made to the customer’s channel.
  2. In the private registry to be used for this purpose, create the following repositories :
Copy

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.

  1. 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 :

  1. Execute the following command to install the KOTS CLI :
Copy
  1. Execute the following command to download the KOTS Admin Console air-gap bundle:
Copy

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.

  1. Store the ECR repository access token for the user credentials in an environment variable as follows:
Copy
  1. Push the KOTS admin console images to the private ECR registry:
Copy
  1. Push the Torch application air-gap bundle to the private ECR registry:
Copy
  1. At this step, you can run any scan on the images for verification and the follow the subsequent steps for Torch application installation.
  2. Install the KOTS Admin Console using the following command:
Copy
  1. Install the Acceldata Torch application using the following command:
Copy

Note: This command will automatically deploy the Acceldata Torch application as well.

Upgrade

  1. Download the Acceldata Torch application air-gap bundle from the download site as shared.
  2. Push the Acceldata Torch application images in the air-gap bundle using the following command:
Copy
  1. Next, execute the following command:
Copy

Note: The “--deploy“ flag is mandatory for the application to deploy automatically.

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:

  1. Connect to the cluster where the configuration change needs to be performed.
  2. Execute the following command and download the application manifests:
Copy
  1. Make changes to the KOTS Admin Console config.yaml file present at <path>/torch/upstream/userdata/config.yaml.
  2. Once completed, upload the changes using the following command. The following upload will be visible in the KOTS admin console as “KOTS Upload“.
Copy
  1. Execute the following command to deploy the configuration change made:
Copy

Note: This will deploy the configuration change and re-deploy relevant Kubernetes pods impacted by this change.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard