Skip to content

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

@kakkoyun kakkoyun requested a review from metalmatze November 12, 2020 09:20
@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