Update role
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adrien Reslinger 2022-02-26 00:46:31 +01:00
parent a5a52b15c8
commit c0bfc09c8c
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
5 changed files with 21 additions and 20 deletions

View file

@ -12,7 +12,7 @@ spec:
# Match is the rule corresponding to an underlying router.
# Later on, match could be the simple form of a path prefix, e.g. just "/bar",
# but for now we only support a traefik style matching rule.
- match: Host(`traefik.{{ traefik_domain }}`) && (PathPrefix(`/dashboard`) || PathPrefix(`/api`))
- match: Host(`traefik.{{ cluster_domain }}`) && (PathPrefix(`/dashboard`) || PathPrefix(`/api`))
# kind could eventually be one of "Rule", "Path", "Host", "Method", "Header",
# "Parameter", etc, to support simpler forms of rule matching, but for now we
# only support "Rule".
@ -20,25 +20,25 @@ spec:
{% if basic_auth is defined or ingress_whitelist is defined %}
middlewares:
{% if ingress_whitelist is defined %}
- name: traefik-ipwhitelist
- name: traefik-ipwhitelist@file
{% endif %}
{% if basic_auth is defined %}
- name: basic-auth
- name: basic-auth@file
{% endif %}
{% endif %}
services:
- name: api@internal
kind: TraefikService
- match: Host(`traefik.{{ traefik_domain }}`) && PathPrefix(`/ping`)
- match: Host(`traefik.{{ cluster_domain }}`) && PathPrefix(`/ping`)
kind: Rule
services:
- name: ping@internal
kind: TraefikService
- match: Host(`traefik.{{ traefik_domain }}`) && PathPrefix(`/metrics`)
kind: Rule
services:
- name: prometheus@internal
kind: TraefikService
# - match: Host(`traefik.{{ cluster_domain }}`) && PathPrefix(`/metrics`)
# kind: Rule
# services:
# - name: prometheus@internal
# kind: TraefikService
@ -46,5 +46,5 @@ spec:
{% if traefik_dashboard_certificate is defined %}
secretName: {{ traefik_dashboard_certificate }}
{% else %}
secretName: traefik.{{ traefik_domain }}
secretName: traefik.{{ cluster_domain }}
{% endif %}