Allow kuma to have multiple urls
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
f2cd3c991b
commit
642a5b29ed
@ -152,7 +152,9 @@
|
|||||||
service: kuma
|
service: kuma
|
||||||
vars:
|
vars:
|
||||||
service_name: "tobias"
|
service_name: "tobias"
|
||||||
url: "status.tobiasmanske.de"
|
urls:
|
||||||
|
- "status.tobiasmanske.de"
|
||||||
|
- "monitor.chaoswg.org"
|
||||||
|
|
||||||
- name: Setup Monitoring Kuma 2
|
- name: Setup Monitoring Kuma 2
|
||||||
hosts: mon1.hel1.chaoswg.org
|
hosts: mon1.hel1.chaoswg.org
|
||||||
@ -163,5 +165,5 @@
|
|||||||
service: kuma
|
service: kuma
|
||||||
vars:
|
vars:
|
||||||
service_name: "istannen"
|
service_name: "istannen"
|
||||||
url: "monitor.ialistannen.de"
|
urls: [ "monitor.ialistannen.de"]
|
||||||
...
|
...
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{% set _name = service_name|default("kuma") %}
|
{% set _name = service_name|default("kuma") %}
|
||||||
{% set _url = url|default(kuma.url)|mandatory %}
|
{% set _urls = urls|default(kuma.urls)|mandatory %}
|
||||||
---
|
---
|
||||||
services:
|
services:
|
||||||
kuma:
|
kuma:
|
||||||
@ -9,7 +9,7 @@ services:
|
|||||||
- data:/app/data
|
- data:/app/data
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.kuma-{{ _name }}.rule=Host(`{{ _url | mandatory }}`)"
|
- "traefik.http.routers.kuma-{{ _name }}.rule={{ _urls | map('regex_replace', '^(.*)$', 'Host(`\\1`)') | join(' || ') }}"
|
||||||
- "traefik.http.routers.kuma-{{ _name }}.entryPoints=websecure"
|
- "traefik.http.routers.kuma-{{ _name }}.entryPoints=websecure"
|
||||||
- "traefik.http.services.kuma-{{ _name }}.loadbalancer.server.port=3001"
|
- "traefik.http.services.kuma-{{ _name }}.loadbalancer.server.port=3001"
|
||||||
networks:
|
networks:
|
||||||
|
Loading…
Reference in New Issue
Block a user