helm install -f helm/values.yaml --namespace demo --create-namespace notifi helm/
kubectl port-forward pod/notifi-master-0 -n demo 8080:8080
If the new replicaCount is lower than the existing value, the residue jobs will be distributed amongst the remaining workers.
If the replicaCount is higher than the existing value, the jobs will not be automatically distributed to the new workers. See this command to distribute the jobs.
helm upgrade -f helm/values.yaml --namespace demo notifi helm/ --set replicaCount=50
curl -X GET http://localhost:8080/addrandomjobs?count=50
curl -X GET http://localhost:8080/distributeallwork
curl -X POST http://localhost:8080/removejobs --data '[{"ID":6874967465064488309},{"ID":6725505124774569258}]'