Deploy Test Assistant using Helm

Overview

This document outlines the requirements and steps for the installation of the Test Assistant (TA) Tool in Kubernetes using Helm.

Prerequisites

Kubernetes and Helm requirements

  • Kubernetes version 1.28 or higher
    • ingress-nginx
    • cert-manager
    • PostgreSQL database with TA DB Pack
    • Ocular Framework (if ocular will be used as auth)
  • Helm version 3.0 or higher

System requirements

The following are the minimum requirements for machines running Test Assistant:

SpecificationMinimum requirement
CPU2 vCPU
Memory8 GB
Storage50 GB

Install Test Assistant

  1. Add the RIA product helm chart repository.
helm repo add riacharts https://charts.devops.riaproducts.com/charts --username riacharts --password https://charts.devops.riaproducts.com/ &&\
helm repo update
  1. Create a Docker registry configuration file named config.json with the following contents.
{
  "auths": {
    "https://index.docker.io/v1/": {
      "auth": "cmlhYWR2aXNvcnk6ZGNrcl9wYXRfVFFJSDhabXVfRmVrbUEzbmVSS0Z2MDQ3SXJr"
    }
  }
}
  1. Create a docker registry credentials named regcred.
kubectl create secret generic regcred --from-file=.dockerconfigjson=config.json --type=kubernetes.io/dockerconfigjson
  1. Create a values.yaml file.
global:
  # Required
  secretData:
    DB_PASSWORD: "<somepassword>"
    DB_USERNAME: "<someusername>"
  # Required
  configmapData:
    DB_URL: "jdbc:postgresql://postgres-db-server:5432/ta"
# Optional. Configure ingress nginx.
ingress:
  # To enable ingress nginx
  kubernetes:
    ingress:
      enabled: false
      className: ""
      annotations: {}
        kubernetes.io/ingress.class: nginx
        kubernetes.io/tls-acme: "true"
      hosts:
        - host: chart-example.local
          paths:
            - path: /
              pathType: ImplementationSpecific
      tls: []
       - secretName: chart-example-tls
         hosts:
           - chart-example.local
  1. Install Test Automation on the Kubernetes cluster.
helm install ta riacharts/ta -f values.yaml

Restart Test Assistant

To restart the Test Assistant, run:

kubectl rollout restart deployment <ta-deployment-name>