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

Commit

Permalink
Configure Traefik for HA
Browse files Browse the repository at this point in the history
  • Loading branch information
branden committed Jun 15, 2020
1 parent 2fc09c3 commit d33f7eb
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions addons/traefik/1.7.x/traefik-11.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,32 @@ spec:
version: 1.72.19
values: |
---
# Configure Traefik for HA.
replicas: 2
podDisruptionBudget:
minAvailable: 1
# Distribute pods to tolerate node or zone failure.
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
podAffinityTerm:
labelSelector:
matchExpressions:
- key: release
operator: In
values:
- traefik-kubeaddons
topologyKey: kubernetes.io/hostname
- weight: 1
podAffinityTerm:
labelSelector:
matchExpressions:
- key: release
operator: In
values:
- traefik-kubeaddons
topologyKey: topology.kubernetes.io/zone
service:
labels:
servicemonitor.kubeaddons.mesosphere.io/path: "metrics"
Expand Down

0 comments on commit d33f7eb

Please sign in to comment.