Merge pull request 'fix(thanos): add pod antiaffinity for receivers to avoid scheduling on the same node' (#316) from tn-improve-resource-scheduling into main
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful

Reviewed-on: #316
Reviewed-by: Aaron Riedel <git@ar21.de>
This commit is contained in:
Aaron Riedel 2024-11-27 08:40:25 +01:00
commit 67fa8dd335

View file

@ -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