feat(promtail): Add node-antiaffinity to avoid outbound deployment

This commit is contained in:
Tanguy Herbron 2023-05-30 23:22:54 +02:00
parent 150581388e
commit b8d830a3b2

View File

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