diff --git a/defaults/main.yml b/defaults/main.yml index f329126..0fc87cf 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -12,7 +12,7 @@ traefik_cpu_limit: 500m traefik_memory_limit: 300Mi traefik_entrypoints: - { name: "http", port: 80, proto: "TCP" } - - { name: "https", port: 443, proto: "TCP" } + - { name: "https", port: 443, proto: "TCP", tls: true } - { name: "traefik", port: 8080, proto: "TCP" } basic_auth: false diff --git a/templates/traefik-cm.yml.j2 b/templates/traefik-cm.yml.j2 index 969c676..37a2ff7 100644 --- a/templates/traefik-cm.yml.j2 +++ b/templates/traefik-cm.yml.j2 @@ -10,10 +10,14 @@ data: {% 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" + # ingressClass: "traefik" throttleDuration: 2s kubernetesIngress: ingressClass: "traefik" @@ -36,6 +40,7 @@ data: debug: true log: level: WARN + format: json accessLog: format: json fields: