entur / helm-charts

0 stars 3 forks source link

fix: do not set replicas if HPA is enabled #147

Closed AlexanderBrevig closed 7 months ago

AlexanderBrevig commented 7 months ago

If HPA is enabled, do not set replicas for Deployment.

The replicas field is assumed and kept in state so we need

kubectl apply edit-last-applied # remove replicas
# or the below last applied already has no replicas
kubectl apply set-last-applied

Now, you can deploy again and replicas will not be touched and your HPA will have control over replicas.