diff --git a/apps/templates/traefik.yaml b/apps/templates/traefik.yaml index 5e5e959..bdb5659 100644 --- a/apps/templates/traefik.yaml +++ b/apps/templates/traefik.yaml @@ -31,7 +31,16 @@ spec: dnsPolicy: ClusterFirstWithHostNet hostNetwork: true nodeSelector: - hasDns: true + hasDns: "true" + + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchLabels: + app.kubernetes.io/name: traefik + app.kubernetes.io/instance: traefik + topologyKey: kubernetes.io/hostname globalArguments: []