fix(thanos): add pod antiaffinity for receivers to avoid scheduling on the same node
Some checks failed
ci/woodpecker/push/yamllint Pipeline failed
Some checks failed
ci/woodpecker/push/yamllint Pipeline failed
This commit is contained in:
parent
54be089d87
commit
1b00d59f79
1 changed files with 24 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue