Closed AlexanderBrevig closed 7 months ago
If HPA is enabled, do not set replicas for Deployment.
replicas
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.
If HPA is enabled, do not set
replicas
for Deployment.The
replicas
field is assumed and kept in state so we needNow, you can deploy again and replicas will not be touched and your HPA will have control over replicas.