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

[question] How to set pod anti affinity to ensure high availability? #371

Open
runkecheng opened this issue Jan 18, 2022 · 0 comments
Open
Assignees
Labels
Q&A Common problems and answers. question Further information is requested
Milestone

Comments

@runkecheng
Copy link
Collaborator

General Question

How to set pod anti affinity?

It is necessary to ensure that the database node is scheduled in different workers, you can refer to the following configuration of the anti-affinity of POD.

podPolicy:
    ...
  affinity: 
    podAntiAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
      - labelSelector:
          matchExpressions:
          - key: mysql.radondb.com/cluster
                operator: In
                values:
                - sample 
            topologyKey: "kubernetes.io/hostname"
@runkecheng runkecheng added the question Further information is requested label Jan 18, 2022
@runkecheng runkecheng added this to the Next milestone Jan 18, 2022
@runkecheng runkecheng added the Q&A Common problems and answers. label Jan 19, 2022
runkecheng added a commit to runkecheng/radondb-mysql-kubernetes that referenced this issue Feb 28, 2022
runkecheng added a commit to runkecheng/radondb-mysql-kubernetes that referenced this issue Mar 7, 2022
runkecheng added a commit to runkecheng/radondb-mysql-kubernetes that referenced this issue Mar 14, 2022
andyli029 added a commit that referenced this issue Mar 17, 2022
config: Add podAntiAffinity to default sample yaml. #371
zhl003 pushed a commit to zhl003/radondb-mysql-kubernetes that referenced this issue Aug 17, 2022
zhl003 pushed a commit to zhl003/radondb-mysql-kubernetes that referenced this issue Aug 17, 2022
…o_sample

config: Add podAntiAffinity to default sample yaml. radondb#371
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Q&A Common problems and answers. question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants