ldc-cluster-k8s/values/traefik.yaml
2024-03-04 11:27:54 +01:00

83 lines
2 KiB
YAML

image:
registry: docker.io
repository: traefik
tag: "${TRAEFIK_APP_VERSION}"
rbac:
enabled: true
globalArguments:
- "--global.checknewversion"
- "--global.sendanonymoususage"
- "--accesslog=true"
# - "--entryPoints.web.http.redirections.entryPoint.to=websecure"
# - "--entrypoints.web.http.redirections.entrypoint.scheme=https"
- "--providers.kubernetescrd.allowCrossNamespace=true"
- "--entryPoints.web.proxyProtocol.trustedIPs=${TRAEFIK_LOAD_BALANCER_IP}/32,10.124.0.0/16,127.0.0.1/32"
- "--entryPoints.websecure.proxyProtocol.trustedIPs=${TRAEFIK_LOAD_BALANCER_IP}/32,10.124.0.0/16,127.0.0.1/32"
- "--entryPoints.websecure.forwardedHeaders.trustedIPs=${TRAEFIK_LOAD_BALANCER_IP}/32"
- "--entryPoints.mariadb.proxyProtocol.trustedIPs=${TRAEFIK_LOAD_BALANCER_IP},10.124.0.0/16"
additionalArguments:
- "--serversTransport.insecureSkipVerify=true"
- "--log.level=DEBUG"
ports:
traefik:
port: 9000
expose: false
protocol: TCP
web:
redirectTo:
port: websecure
websecure:
port: 8443
expose: true
exposedPort: 443
protocol: TCP
tls:
enabled: true
metrics:
port: 9100
expose: false
protocol: TCP
mariadb:
port: 54322
expose: true
protocol: TCP
ingressRoute:
dashboard:
enable: true
annotations:
kubernetes.io/ingress.class: traefik
matchRule: >-
(Host(`${TRAEFIK_DNS}`) || Host(`localhost`)) && (PathPrefix(`/dashboard`) || PathPrefix(`/api`))
entryPoints:
- "websecure"
middlewares:
- name: auth
- name: admin-ldc-whitelist
tls:
secretName: ${TRAEFIK_DNS}
providers:
kubernetesCRD:
enabled: true
ingresssClass: traefik
kubernetesIngress:
enabled: true
service:
enabled: true
type: LoadBalancer
annotations:
service.beta.kubernetes.io/ovh-loadbalancer-proxy-protocol: v2
loadBalancerSourceRanges: []
#- 10.124.0.0/16
spec:
loadBalancerIP: "${TRAEFIK_LOAD_BALANCER_IP}"
externalTrafficPolicy: Local
externalIPs: []
internal:
type: ClusterIP