Skip to main content

KAPPA-Automate IT Infrastructure

Installing KAPPA-Automate

Prerequisites

  • Registered username and password for https://www.kappaeng.com

  • Access to the Internet

  • Linux machine or WSL (Windows Subsystem for Linux)

  • Installed instance of Terraform

  • Installed instance of Kubectl

  • Installed instance of jq

  • Installed instance of FlexLM Server (For information on installing FlexLM Server, see https://www.kappaeng.com/downloads/protection)

  • A Flexlm license for KAPPA-Automate

  • Fully Qualified Domain Name (FQDN)

  • FQDN Digital Certificate (.crt) and corresponding Key (.key)

  • The Configuration file which give you access to your Kubernetes installation

Installation Methods

KAPPA-Automate can be deployed in a Cloud environment (such as Microsoft Azure, AWS or OpenShift) or On-premises. The hardware recommendations for both methods are as specified;

  1. Cloud Deployment

    • Kubernetes service

    • Kubeconfig file

    • Linux node pool: 5 nodes with a minimum of 16 CPU and 48GB RAM

    • 1500GB of Persistent Volume Claim available which will be split into several volumes

  2. On-premises Deployment

    • Linux Control Plane nodes: 3 Virtual Machines with a minimum of 4 CPU, 6GB RAM and 120GB storage per virtual machine

    • Linux Worker nodes: 5 Virtual Machines with a minimum of 16 CPU, 48GB RAM and at least 500GB storage per virtual machine (depending on the size of data that will be loaded into KAPPA-Automate).

      Warning

      If backups are enabled, the first 3 worker nodes must have at least double the size of storage available of the data which will be stored.

Linux/WSL Installation

A Linux operating system is compulsory to run the installation script, however, if you wish to run the script from a windows machine, it is required to install WSL.

  1. On your windows machine, open Powershell as an administrator and then run the following;

    wsl --install

Note

For more information on installing WSL, see https://learn.microsoft.com/en-us/windows/wsl/install

Terraform Installation

Terraform is required to deploy and update KAPPA-Automate.

Depending on your Linux distribution you will need to use the following commands to install Terraform;

  1. Ubuntu

    wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
    echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(grep -oP '(?<=UBUNTU_CODENAME=).*' /etc/os-release || lsb_release -cs) main" |sudo tee /etc/apt/sources.list.d/hashicorp.list
    sudo apt update && sudo apt install terraform
  2. RedHat

    sudo yum install -y yum-utils
    sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.reposudo
    yum -y install terraform

Note

For more information on installing Terraform, see https://developer.hashicorp.com/terraform/install

Kubectl Installation

Kubectl is a command-line tool used to interact with the Kubernetes API to deploy, manage, and inspect resources within a Kubernetes cluster.

  1. You will need to use the following command to install Kubectl;

    curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
    sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl

Note

For more information on installing Kubectl, see https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/

jq Installation

jq is a lightweight command-line JSON processor that allows you to query, filter, and transform structured JSON data using a dedicated query language.

Depending on your Linux distribution you will need to use the following commands to install jq;

  1. Ubuntu

    sudo apt install jq
  2. Redhat

    yum install epel-release -y
    yum install jq -y

KAPPA-Automate Installation

Prerequisites

The installation of KAPPA-Automate using Terraform consists of running a script after configuring two files;

  • ka.tfvars

  • ka.terraform.tfbackend

Warning

The ka.tfvars and the ka.terraform.tfbackend files must be configured before the installation script is run.

Preparing the Installation

  1. Edit the ka.tfvars file and fill out the below parameters with the appropriate information;

    kube_config_path:          the path to the Kubernetes cluster configuration file
    
    kube_context:              the context specified inside the Kubernetes cluster configuration file
    
    license server:
          url:                 the url (or ip address) of the FlexLM server which hosts the KAPPA-Automate license
          port:                the port that the FlexLM server is using
    
    container_registries:
          services
                password:      the password to the registry
                server:        the address to the service registry
                user:          the user account to access the registry
                secret_name:   the name of the secret in the Kubernetes cluster
          third parties
                password:      the password to the registry
                server:        the address to the service registry
                user:          the user account to access the registry
                secret_name:   the name of the secret in the Kubernetes cluster
    
    https_certificate:
          crt_file_path:       the path to the Crt certificate that your KAPPA-Automate is going to use
          key_file_path:       the key file corresponding to the Crt certificate file
    
    domain_name:               the public domain name
    
    databases:
         storage_size:         the amount of disk space you want to provision to store the data

    Note

    The example above is only a snippet of the ka.tfvars file. As new releases of KAPPA-Automate become available, the ka.tfvars file may be updated to add, modify, or remove parameters as required.

  2. Edit the ka.terraform.tfbackend file and fill out the below parameter with the appropriate information;

    config_path:              the path to the Kubernetes cluster configuration file
    

Running the Installation

  1. First you will need to set privileges on the run.sh file.

    Using your Linux machine/WSL, run the below command;

    chmod a+x run.sh
  2. Once the privileges have been applied, you can then run the installation script. This is split into two parts;

    Using your Linux machine/WSL, run the below command;

    ./run.sh --plan

    Note

    Running ./run.sh --plan generates a Terraform execution plan and writes the output to terraform-plan.log. The plan provides a preview of the infrastructure changes Terraform will perform, including any resources that will be created, modified, or deleted. Reviewing the contents of terraform-plan.log before running an apply helps confirm that the proposed changes are expected and reduces the risk of unintended changes to your environment.

    ./run.sh --apply

    Caution

    Running ./run.sh --apply applies the Terraform execution plan, provisioning or updating the infrastructure based on the approved configuration. Before running this command, ensure that you have reviewed the contents of terraform-plan.log and confirmed that the proposed changes are correct. Applying the plan will make changes to your environment, so it should only be performed once the plan has been verified.

Verifying the Installation

After you have run the script to install KAPPA-Automate, you can verify the status of the installation by using the following commands;

  1. The below commands will list the existing pods and their current status by namespace. From this, you can monitor if they are in process of creating containers, running or if they have failed to start. Below are example snippets.

    kubectl get pods -n kappa --kubeconfig **the path to your Kubernetes cluster configuration file**
    Get_Pods__New_.png
    kubectl get pods -n kappa-redis --kubeconfig **the path to your Kubernetes cluster configuration file**
    Get_Pods_-n_kappa-redis.png
    kubectl get pods -n kappa-postgres --kubeconfig **the path to your Kubernetes cluster configuration file**
    Get_Pods_-n_kappa-postgres.png
    kubectl get pods -n garage --kubeconfig **the path to your Kubernetes cluster configuration file**
    Get_Pods_-n_garage.png
  2. This command will list the existing services, the internal IP they are using and, if available, the IP address and port that can be used to reach them (EXTERNAL-IP). Below is an example snippet.

    kubectl get service -n kappa --kubeconfig **the path to your Kubernetes cluster configuration file**
    Get_Service__New_.png

You can also use Lens to verify that the deployment has completed successfully.

Lens_Pods__New_.png

After the deployment has completed, open the KAPPA-Automate UI to verify that the application is available.

KA_UI.png