diff --git a/defaults/main.yml b/defaults/main.yml index 00d6147..f329126 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -16,3 +16,4 @@ traefik_entrypoints: - { name: "traefik", port: 8080, proto: "TCP" } basic_auth: false +#traefik_dashboard_certificate: wildcard-cluster \ No newline at end of file diff --git a/templates/traefik-dashboard.yml.j2 b/templates/traefik-dashboard.yml.j2 index 0912947..c8f45b1 100644 --- a/templates/traefik-dashboard.yml.j2 +++ b/templates/traefik-dashboard.yml.j2 @@ -42,7 +42,9 @@ spec: # (default 100ms) Interval between flushes of the buffered response body to the client. flushInterval: 100ms tls: - secretName: wildcard-cluster +{% if traefik_dashboard_certificate is defined %} + secretName: {{ traefik_dashboard_certificate }} +{% endif %} options: name: default namespace: {{ traefik_namespace }} \ No newline at end of file diff --git a/templates/traefik-dp.yml.j2 b/templates/traefik-dp.yml.j2 index d3155ae..efcc8fe 100644 --- a/templates/traefik-dp.yml.j2 +++ b/templates/traefik-dp.yml.j2 @@ -71,11 +71,7 @@ spec: reslinger.net/entrypoint: traefik {% endif %} dnsPolicy: ClusterFirst -{% if my_context == "flamykube" %} - hostNetwork: true -{% else %} hostNetwork: false -{% endif %} restartPolicy: Always terminationGracePeriodSeconds: 1 tolerations: