argocd/infra/traefik/helmchartconfig.yaml

39 lines
1.3 KiB
YAML
Raw Normal View History

2026-10-11 21:37:30 +02:00
# Overrides for the Traefik that k3s bundles (merged over k3s's own values).
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: traefik
namespace: kube-system
spec:
valuesContent: |-
2026-10-11 21:37:30 +02:00
# Two copies on two different workers, never on the masters (k3s's
# default tolerations would allow them), so one node going down doesn't
# take every app with it.
deployment:
replicas: 2
podDisruptionBudget:
enabled: true
minAvailable: 1
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: DoesNotExist
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app.kubernetes.io/name: traefik
topologyKey: kubernetes.io/hostname
# Trust X-Forwarded-For from Caddy (10.0.0.10), so apps see the real client
# IP instead of Caddy's. Requests reach Traefik through ServiceLB, which
# rewrites the source to a node or pod address, hence the two ranges.
ports:
web:
forwardedHeaders:
trustedIPs:
- 10.0.0.0/24
- 10.42.0.0/16