Files
homelab/k8s-ng/core/traefik-config/helmchartconfig.yaml
T

30 lines
1021 B
YAML
Raw Normal View History

2026-10-05 19:00:28 +01:00
# Configuration of the Traefik that ships with k3s.
# Ingresses without a router.entrypoints annotation now use only "websecure", so
# plain HTTP is redirected to HTTPS by default (see http-redirect.yaml).
# To publish an Ingress over plain HTTP add the annotation
# traefik.ingress.kubernetes.io/router.entrypoints: web
# (or "web,websecure" to serve both without a redirect).
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: traefik
namespace: kube-system
spec:
valuesContent: |-
deployment:
kind: DaemonSet
service:
spec:
externalTrafficPolicy: Local
# ServiceLB masquerades clients as pod traffic before the NodePort hop,
# which bypasses externalTrafficPolicy. Prefer the ingress on this node
# for that cluster-policy path as well.
trafficDistribution: PreferSameNode
tolerations:
- key: workload
operator: Equal
value: ai
effect: NoSchedule
2026-10-05 19:00:28 +01:00
ports:
websecure:
asDefault: true