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

Overwrite the default affinity #24

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

Conversation

clyang82
Copy link
Contributor

The previous PR #23 is for defining some common affinity. for example:

    affinity:
      nodeAffinity:
        requiredDuringSchedulingIgnoredDuringExecution:
          nodeSelectorTerms:
          - matchExpressions:
            - key: kubernetes.io/e2e-az-name
              operator: In
              values:
              - e2e-az1
              - e2e-az2

This PR is for defining the default affinity just like what we do in receiver component:

podAntiAffinity:
      preferredDuringSchedulingIgnoredDuringExecution:
      - podAffinityTerm:
          labelSelector:
            matchExpressions:
            - key: app.kubernetes.io/name
              operator: In
              values:
              - thanos-query
            - key: app.kubernetes.io/instance
              operator: In
              values:
              - observatorium-xyz
          topologyKey: kubernetes.io/hostname
        weight: 30
      - podAffinityTerm:
          labelSelector:
            matchExpressions:
            - key: app.kubernetes.io/name
              operator: In
              values:
              - thanos-query
            - key: app.kubernetes.io/instance
              operator: In
              values:
              - observatorium-xyz
          topologyKey: topology.kubernetes.io/zone
        weight: 70

/assign @metalmatze

Signed-off-by: clyang82 chuyang@redhat.com

@clyang82
Copy link
Contributor Author

Thanks @metalmatze . Could you help to merge it? I do not have permission to do it.

Signed-off-by: clyang82 <chuyang@redhat.com>
haoqing0110 referenced this pull request in stolostron/observatorium-operator Apr 7, 2021
saswatamcode pushed a commit to saswatamcode/observatorium-operator that referenced this pull request May 21, 2024
…te_locutus

Update locutus to support deepcopy
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.

2 participants