IMPORTANT:Administration Console pod will restart while scaling Access Gateway up or down.
Make sure that additional worker nodes are available.
For example, if you want to scale Access Gateway from one instance to four, three additional worker nodes must be available.
Run the following command:
helm upgrade --namespace <name-of-the-namespace> <release-name> access-manager --set am-ag.replicaCount=<number-of-Access-Gateway-instances> --reuse-values
For example, if you want four instances of Access Gateway and the values of the command’s elements are as follows:
Element |
Value |
---|---|
Name of the Namespace |
development |
Release name |
my-deployment |
Number of Access Gateway instances |
4 |
Then the command will look as follows:
helm upgrade --namespace development my-deployment access-manager --set am-ag.replicaCount=4 --reuse-values
Log in to Administration Console, and add the nodes to the cluster.
To scale down, perform the following steps:
Reduce the value of am-ag.replicaCount and run the following command:
helm upgrade --namespace <name-of-the-namespace> <release-name> access-manager --set am-ag.replicaCount=<number-of-Access-Gateway-instances> --reuse-values
Delete the persistent volume and persistent volume claim:
kubectl delete pvc $(kubectl get pv | grep am- | grep Terminating | awk '{print $6}' | cut -d "/" -f2) -n <name-of-the-namespace>
Delete the unused worker nodes.
Log in to Administration Console, then remove the nodes from the cluster.