fix(thanos): add pod antiaffinity for receivers to avoid scheduling on the same node
All checks were successful
ci/woodpecker/push/yamllint Pipeline was successful

This commit is contained in:
Tom Neuber 2024-11-25 06:01:04 +01:00
parent 54be089d87
commit 2c0a355a7f
Signed by: tom
GPG key ID: F17EFE4272D89FF6

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