Epicode Helmcharts Installation

Install Helm

Install helm if not already available by following the link https://helm.sh/docs/intro/install/

Run the below command after installing helm

export KUBECONFIG=/etc/rancher/k3s/k3s.yaml

helm repo add k8tz https://k8tz.github.io/k8tz/

helm install k8tz k8tz/k8tz --set timezone=Asia/Kolkata

Use the appropriate time zone depending on the requirement.


Epicode Helm Charts

1. Install IraCluster Helm Chart

Run the below command to install IraCluster helm chart

helm install iracluster -f iracluster-values.yaml oci://public.ecr.aws/epicode-modules/iracluster-helmchart

Use the below iracluster-values.yaml file and replace <nats-ip> with the IP address where NATS is listening on. Set the nkey pairs that were generated while installing the NATS server.


Sample iracluster-values.yaml

config:

  natsUrl: nats://<nats-ip>:4222
  SYS_NATS_PUBLIC: ""
  SYS_NATS_SEED: ""
  NORMAL_NATS_PUBLIC: ""
  NORMAL_NATS_SEED: ""

  IRA_CORE_COUNT: "2"

  IRA_CORE_THREAD_COUNT: "2"


2. Install IraPass Helm Chart

Install the IraPass helm chart using the below command by replacing <your_cluster_id> with the cluster ID provided to you and <release_name> with the name of your choice (Ex: irapass). 

helm install --set config.iraClusterId=<your_cluster_id> <release_name> oci://public.ecr.aws/epicode-modules/irapass-helmchart

A single instance of IraCluster can be used for supporting multiple clusters. This is achieved by installing the IraPass helm chart multiple times, one for each cluster. Make sure to give a unique release name for each cluster to identify it during upgrade and uninstallation.


3. Verify the pod logs

Run the below command to get the pod names.

kubectl get pods

Run the below command to check whether irapass has acquired license.

kubectl logs <irapass-pod-name>

Reference: