From 1d6cf0a521a57775f3824e0cb95d9c44db9837d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Wed, 25 Jan 2023 09:55:04 +0200 Subject: [PATCH] camtiler: Restore cams on members site --- camtiler/ingress.yml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/camtiler/ingress.yml b/camtiler/ingress.yml index 573e547..56244b9 100644 --- a/camtiler/ingress.yml +++ b/camtiler/ingress.yml @@ -6,12 +6,22 @@ metadata: annotations: kubernetes.io/ingress.class: traefik traefik.ingress.kubernetes.io/router.entrypoints: websecure - traefik.ingress.kubernetes.io/router.middlewares: traefik-sso@kubernetescrd + traefik.ingress.kubernetes.io/router.middlewares: traefik-sso@kubernetescrd,camtiler-redirect@kubernetescrd traefik.ingress.kubernetes.io/router.tls: "true" external-dns.alpha.kubernetes.io/target: traefik.k-space.ee spec: rules: - host: cams.k-space.ee + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: logmower-frontend + port: + number: 8080 + - host: cam.k-space.ee http: paths: - pathType: Prefix @@ -21,6 +31,13 @@ spec: name: camera-tiler port: number: 5001 + - pathType: Prefix + path: "/m" + backend: + service: + name: camera-tiler + port: + number: 5001 - pathType: Prefix path: "/events" backend: @@ -38,3 +55,13 @@ spec: tls: - hosts: - "*.k-space.ee" +--- +apiVersion: traefik.containo.us/v1alpha1 +kind: Middleware +metadata: + name: redirect +spec: + redirectRegex: + regex: ^https://cams.k-space.ee/(.*)$ + replacement: https://cam.k-space.ee/$1 + permanent: false