How to reconfigure Cluster ID?

1. Uninstall IraPass:

Run the following command to uninstall IraPass: 

helm uninstall irapass


2. Re-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 below command to get the pod names:

kubectl get pods

Run below command to check whether irapass has acquired a license:

kubectl logs <irapass-pod-name>


4. Reconfigure IraBase:

 Run below command to reconfigure IraBase:

sudo dpkg-reconfigure irabase

This will give you a prompt where you can replace the cluster ID.