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

Add topologyspreadconstraint to deploy pods in sts cross different az evenly #526

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wangshu3000
Copy link
Contributor

Fixes #521

Motivation

I see broker sts doesn't support topology constraint configuration. That means 2 pods in the sts may possible depoyed to on az in kubernetes cluster.
Reference doc: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/

Modifications

Added a topology spread constraint configuration to deployed the pods in sts spread to different az, so that under an AZ outage, the impact can be only limited to small number of brokers.

Verifying this change

  • Make sure that the change passes the CI checks.

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

Successfully merging this pull request may close these issues.

Brokers should be deployed to different AZ, we better add topology spread contstraint
1 participant