Use default certificate by default

This commit is contained in:
Adrien Reslinger 2020-07-13 17:19:58 +02:00
parent a9faf1337c
commit ecc9410692
3 changed files with 4 additions and 5 deletions

View file

@ -16,3 +16,4 @@ traefik_entrypoints:
- { name: "traefik", port: 8080, proto: "TCP" } - { name: "traefik", port: 8080, proto: "TCP" }
basic_auth: false basic_auth: false
#traefik_dashboard_certificate: wildcard-cluster

View file

@ -42,7 +42,9 @@ spec:
# (default 100ms) Interval between flushes of the buffered response body to the client. # (default 100ms) Interval between flushes of the buffered response body to the client.
flushInterval: 100ms flushInterval: 100ms
tls: tls:
secretName: wildcard-cluster {% if traefik_dashboard_certificate is defined %}
secretName: {{ traefik_dashboard_certificate }}
{% endif %}
options: options:
name: default name: default
namespace: {{ traefik_namespace }} namespace: {{ traefik_namespace }}

View file

@ -71,11 +71,7 @@ spec:
reslinger.net/entrypoint: traefik reslinger.net/entrypoint: traefik
{% endif %} {% endif %}
dnsPolicy: ClusterFirst dnsPolicy: ClusterFirst
{% if my_context == "flamykube" %}
hostNetwork: true
{% else %}
hostNetwork: false hostNetwork: false
{% endif %}
restartPolicy: Always restartPolicy: Always
terminationGracePeriodSeconds: 1 terminationGracePeriodSeconds: 1
tolerations: tolerations: