Deploy Test Assistant using Helm
Overview
Ensure that you have installed a Docker and Kubernetes before deploying Test Assistant. For more information, see Install Kubernetes.
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:
| Specification | Minimum requirement |
|---|---|
| CPU | 2 vCPU |
| Memory | 8 GB |
| Storage | 50 GB |
Install Test Assistant
- 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
- Create a Docker registry configuration file named
config.jsonwith the following contents.
{
"auths": {
"https://index.docker.io/v1/": {
"auth": "cmlhYWR2aXNvcnk6ZGNrcl9wYXRfVFFJSDhabXVfRmVrbUEzbmVSS0Z2MDQ3SXJr"
}
}
}
- Create a docker registry credentials named
regcred.
kubectl create secret generic regcred --from-file=.dockerconfigjson=config.json --type=kubernetes.io/dockerconfigjson
- Create a
values.yamlfile.
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
- 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>