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 more pod labels #28

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

landorg
Copy link

@landorg landorg commented Feb 10, 2022

These labels help to distribute nodes across nodes with topologySpreadConstraints. Can be used like this:

  masters:
    topologySpreadConstraints:
      - maxSkew: 1
        topologyKey: kubernetes.io/hostname
        whenUnsatisfiable: DoNotSchedule
        labelSelector:
          matchExpressions:
            - key: app-type
              operator: In
              values:
              - master

  workers:
    topologySpreadConstraints:
      - maxSkew: 1
        topologyKey: kubernetes.io/hostname
        whenUnsatisfiable: DoNotSchedule
        labelSelector:
          matchExpressions:
            - key: app-type
              operator: In
              values:
              - worker

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.

1 participant