ansible-role-k8s-traefik/templates/2.1/traefik-cm.yml.j2
Adrien a01b9619ec
All checks were successful
continuous-integration/drone/push Build is passing
Force using ingressclass anotation into ingress
2020-07-07 23:09:53 +02:00

48 lines
998 B
Django/Jinja

apiVersion: v1
data:
traefik.yaml: |
global:
checkNewVersion: true
serversTransport:
insecureSkipVerify: true
entryPoints:
{% for traefik_entrypoint in traefik_entrypoints %}
{{ traefik_entrypoint.name }}:
address: :{{ traefik_entrypoint.port }}
{% endfor %}
providers:
kubernetesCRD:
ingressClass: "traefik"
throttleDuration: 2s
kubernetesIngress:
ingressClass: "traefik"
metrics:
prometheus:
buckets:
- 0.1
- 0.3
- 1.2
- 5
entryPoint: traefik
ping:
entryPoint: traefik
api:
insecure: true
dashboard: true
debug: true
log:
level: DEBUG
accessLog:
format: json
fields:
names:
BackendAddr: keep
BackendName: keep
BackendURL: keep
FrontendName: keep
kind: ConfigMap
metadata:
labels:
app: traefik
name: traefik
namespace: {{ traefik_namespace }}