diff --git a/pkg/monitoring/tmpl/prometheus/instance/ccp/prometheus.tpl b/pkg/monitoring/tmpl/prometheus/instance/ccp/prometheus.tpl index 0afb24ab..dc18d7c5 100644 --- a/pkg/monitoring/tmpl/prometheus/instance/ccp/prometheus.tpl +++ b/pkg/monitoring/tmpl/prometheus/instance/ccp/prometheus.tpl @@ -13,6 +13,17 @@ metadata: {{- end }} spec: affinity: + podAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 85 + podAffinityTerm: + topologyKey: kubernetes.io/hostname + labelSelector: + matchExpressions: + - key: app + operator: In + values: + - {{.Spec.Dbs.Redis.SvcName }} podAntiAffinity: preferredDuringSchedulingIgnoredDuringExecution: - weight: 100