prometheus-exporter: Fix antiaffinity rule for Mikrotik exporter

This commit is contained in:
Lauri Võsandi 2022-11-12 16:50:31 +02:00
parent 7b9cb6184b
commit 18c4764687

View File

@ -87,7 +87,13 @@ spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- topologyKey: "kubernetes.io/hostname"
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- mikrotik-exporter
topologyKey: "kubernetes.io/hostname"
---
kind: Service
apiVersion: v1