Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chart/redis-ha][BUG] Can only do a rolling update of the ha-proxy deployment on a cluster with min 4 nodes #249

Closed
martijnvdp opened this issue Mar 31, 2023 · 4 comments · Fixed by #250
Assignees
Labels
bug Something isn't working

Comments

@martijnvdp
Copy link
Contributor

martijnvdp commented Mar 31, 2023

Describe the bug
Can only do a rolling update of the ha-proxy deployment on a cluster with min 4 nodes
k rollout restart deployment argocd-redis-ha-haproxy
the pod affinity rules and the default spec:

    rollingUpdate:
      maxSurge: 25%
      maxUnavailable: 25%

requires a cluster of 4 nodes to work

changing the deployment spec to :

  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxUnavailable: 1

fixes the issue

To Reproduce
start a rolling update of the haproxy deployment on a cluster with 3 nodes with afinnity rules set
hardAntiAffinity: true

Expected behavior
i expected to be able to do a rolling update on a cluster with less than 4 nodes

Additional context
see also https://stackoverflow.com/questions/65063122/kubernetes-podantiaffinity-affects-deployment-failedscheduling-didnt-match

@martijnvdp martijnvdp added the bug Something isn't working label Mar 31, 2023
@martijnvdp martijnvdp changed the title [chart/redis-ha][BUG] [chart/redis-ha][BUG] Can only do a rolling update of the ha-proxy deployment on a cluster with min 4 nodes Apr 1, 2023
martijnvdp added a commit to martijnvdp/charts that referenced this issue Apr 3, 2023
martijnvdp added a commit to martijnvdp/charts that referenced this issue Apr 3, 2023
martijnvdp added a commit to martijnvdp/charts that referenced this issue Apr 3, 2023
martijnvdp added a commit to martijnvdp/charts that referenced this issue May 9, 2023
martijnvdp added a commit to martijnvdp/charts that referenced this issue May 9, 2023
martijnvdp added a commit to martijnvdp/charts that referenced this issue May 9, 2023
martijnvdp added a commit to martijnvdp/charts that referenced this issue Jun 19, 2023
@martijnvdp
Copy link
Contributor Author

@DandyDeveloper
Copy link
Owner

Hello @martijnvdp

I've been very neglectful of this repo as I've moved overseas back to my home country.

I'll try to jump on your PR ASAP to get it in, I'll hopefully be settled over the coming week or two.

Thanks for your patience.

@v-wan
Copy link

v-wan commented Sep 14, 2023

Hello @DandyDeveloper, please take a look at the PR. It should be expected to perform a rolling upgrade using the default settings of 3 replicas

DandyDeveloper added a commit that referenced this issue Feb 5, 2024
…date config (#250)

* [stable/redis-ha] add maxUnavailable value for the ha-proxy rollingUpdate config, fix issue #249.
Signed-off-by: Martijn van der Ploeg <[email protected]>

* Update Chart.yaml

---------

Co-authored-by: Aaron Layfield <[email protected]>
@DandyDeveloper
Copy link
Owner

Fixed in 4.25.1 per #250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants