IMPORTANT:Administration Console pod will restart while scaling Identity Server up or down.
Make sure that additional worker nodes are available.
For example, if you want to scale Identity Server from one instance to three, two additional worker nodes must be available.
Run the following command:
helm upgrade --namespace <name-of-the-namespace> <release-name> access-manager --set am-idp.replicaCount=<number-of-Identity-Server-instances> --reuse-values
For example, if you want three instances of Identity Server and the values of the command’s elements are as follows:
Element |
Value |
---|---|
Name of the Namespace |
development |
Release name |
my-deployment |
Number of Identity Server instances |
3 |
Then the command will look as follows:
helm upgrade --namespace development my-deployment access-manager --set am-idp.replicaCount=3 --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-idp.replicaCount and run the following command:
helm upgrade --namespace <name-of-the-namespace> <release-name> access-manager --set am-idp.replicaCount=<number-of-Identity-Server-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.