From b8d830a3b2c57f5d0dc26e26bef7044edeb3c64b Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Tue, 30 May 2023 23:22:54 +0200 Subject: [PATCH] feat(promtail): Add node-antiaffinity to avoid outbound deployment --- monitoring/promtail/daemonset.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/monitoring/promtail/daemonset.yaml b/monitoring/promtail/daemonset.yaml index 8583d39..ec36318 100644 --- a/monitoring/promtail/daemonset.yaml +++ b/monitoring/promtail/daemonset.yaml @@ -26,6 +26,15 @@ spec: annotations: checksum/config: 807310f261dd2585fdcb196f53c15ad3295af56ceac4869de7beaa331ecc9a3c spec: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: type + operator: NotIn + values: + - "outbound" serviceAccountName: loki-promtail securityContext: runAsGroup: 0