Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
Set custom label to use for affinity
Browse files Browse the repository at this point in the history
  • Loading branch information
branden committed Jun 16, 2020
1 parent 392e19e commit be789c5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions addons/traefik/1.7.x/traefik-12.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,23 @@ spec:
podAffinityTerm:
labelSelector:
matchExpressions:
- key: release
- key: kubeaddons.mesosphere.io/name
operator: In
values:
- traefik-kubeaddons
- traefik
topologyKey: kubernetes.io/hostname
- weight: 1
podAffinityTerm:
labelSelector:
matchExpressions:
- key: release
- key: kubeaddons.mesosphere.io/name
operator: In
values:
- traefik-kubeaddons
- traefik
topologyKey: failure-domain.beta.kubernetes.io/zone
deployment:
podLabels:
kubeaddons.mesosphere.io/name: traefik
service:
labels:
servicemonitor.kubeaddons.mesosphere.io/path: "metrics"
Expand Down

0 comments on commit be789c5

Please sign in to comment.