about summary refs log tree commit diff
path: root/bundles/glance/files/traefik.yaml
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2025-09-07 17:32:13 +0200
committerRobert Günzler <r@gnzler.io>2025-09-07 17:42:42 +0200
commit38be6c13f76e893cf47636257071b440dec0c5b2 (patch)
treef7ded3235a7e3362cbd1ed3d91523968fe0faf90 /bundles/glance/files/traefik.yaml
initial commit
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'bundles/glance/files/traefik.yaml')
-rw-r--r--bundles/glance/files/traefik.yaml18
1 files changed, 18 insertions, 0 deletions
diff --git a/bundles/glance/files/traefik.yaml b/bundles/glance/files/traefik.yaml
new file mode 100644
index 0000000..1f248a7
--- /dev/null
+++ b/bundles/glance/files/traefik.yaml
@@ -0,0 +1,18 @@
+http:
+  services:
+    glance:
+      loadBalancer:
+        servers:
+          - url: http://${node.metadata.get("container_gateway", "10.89.0.1")}:${node.metadata.get("glance/port")}
+
+  routers:
+    glance:
+      rule: Host(`1.gzr.im`)
+      entryPoints:
+        - http
+        - https
+      service: glance
+      middlewares:
+        - tls-redirect@file
+      tls:
+        certResolver: le