ansible-role-k8s-traefik/templates/traefik-cm.yml.j2
Adrien Reslinger 88bdd20377
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Use helm to deploy traefik
2021-01-19 00:00:47 +01:00

63 lines
1.4 KiB
Django/Jinja

apiVersion: v1
kind: ConfigMap
metadata:
labels:
app: traefik
name: traefik-conf
data:
traefik.yaml: |
global:
checkNewVersion: true
sendAnonymousUsage: true
serversTransport:
insecureSkipVerify: true
entryPoints:
web:
address: ":8000/tcp"
http:
redirections:
entryPoint:
to: websecure
scheme: https
websecure:
address: ":8443/tcp"
http:
tls:
options: default
traefik:
address: ":9000/tcp"
{% for traefik_entrypoint in traefik_entrypoints %}
{{ traefik_entrypoint.name }}:
address: :{{ traefik_entrypoint.port }}
{% if traefik_entrypoint.tls is defined and traefik_entrypoint.tls|bool %}
http:
tls: {}
{% endif %}
{% endfor %}
providers:
kubernetesCRD:
# ingressClass: "traefik"
throttleDuration: 2s
kubernetesIngress:
ingressClass: "traefik"
file:
directory: /etc/traefik/file/
watch: true
metrics:
prometheus:
entryPoint: traefik
ping:
entryPoint: traefik
api:
dashboard: true
log:
level: WARN
format: json
accessLog:
format: json
fields:
names:
BackendAddr: keep
BackendName: keep
BackendURL: keep
FrontendName: keep