diff --git a/thanos/6-receiver.yaml b/thanos/6-receiver.yaml index 67928dd..ba26b01 100644 --- a/thanos/6-receiver.yaml +++ b/thanos/6-receiver.yaml @@ -54,6 +54,18 @@ spec: serviceAccount: thanos securityContext: fsGroup: 1001 + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - key: app.kubernetes.io/name + operator: In + values: + - receiver + topologyKey: kubernetes.io/hostname + weight: 1 initContainers: - name: init-chmod-data image: docker.io/bitnami/minideb:buster @@ -193,6 +205,18 @@ spec: serviceAccount: thanos securityContext: fsGroup: 1001 + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - podAffinityTerm: + labelSelector: + matchExpressions: + - key: app.kubernetes.io/name + operator: In + values: + - receiver + topologyKey: kubernetes.io/hostname + weight: 1 initContainers: - name: init-chmod-data image: docker.io/bitnami/minideb:buster