Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Flux conflicts with pods autoscale #1686

Closed
wenbli opened this issue Jan 24, 2019 · 2 comments
Closed

Flux conflicts with pods autoscale #1686

wenbli opened this issue Jan 24, 2019 · 2 comments
Labels

Comments

@wenbli
Copy link

wenbli commented Jan 24, 2019

When a controller is set to manual mode for production environment, and have the autoscale enabled for the deployment, fluxctl and horizontalpodautoscaler conflicts causing pods keep deleting/creating to meet the "replicas" decided by fluxctl and autoscale.

@stefanprodan stefanprodan changed the title fluxctl conflicts with pods autoscale Flux conflicts with pods autoscale Jan 24, 2019
@stefanprodan
Copy link
Member

If you use HPA then you need to remove the spec.replicas field from your deployment yaml. When Flux will apply the deployment, due to how kubectl 3 way merge works, the replicas value when set by the HPA will not be overwritten if it's not present in git.

@wenbli
Copy link
Author

wenbli commented Jan 24, 2019

Thanks, it works!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants