ansible-role-k8s-traefik/templates/traefik-cm.yml.j2
Adrien 0e6f763db5
All checks were successful
continuous-integration/drone/push Build is passing
Use helm and local provider
2020-12-19 13:20:57 +01:00

64 lines
1.4 KiB
Django/Jinja

apiVersion: v1
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
kind: ConfigMap
metadata:
labels:
app: traefik
name: traefik
namespace: {{ traefik_namespace }}