Files
homelab/k8s-ng/core/traefik-config/helmchartconfig.yaml
T
Ultradesu 729e808b13
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 5s
Avoid Traefik NodePort collision with telemt TLS
2026-10-21 12:33:00 +01:00

34 lines
1.1 KiB
YAML

# 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
ports:
web:
# Keep Traefik's NodePort clear of the MTProxy hostPorts (30443/30444).
nodePort: 30080
websecure:
asDefault: true