IBMStockTrader/stocktrader-operator

Don't set replicas field if HPA enabled

Closed this issue · 1 comments

Apparently the .spec.replicas field on the Deployment should not be specified if you have enabled a HorizontalPodAutoscaler. Instead you should just set the minReplicas and maxReplicas fields of the HPA, and let it decide how many replicas are needed. Explicitly setting the replicas field not he deployment appears to cause the operator to argue with the HPA. So I need to put a conditional around this field, on each microservice, to only set it if the HPA is not enabled for that microservice.

Fixed in v1.0.0 of the operator