1
0
forked from k-space/kube
kube/camtiler/ingress.yml

78 lines
1.9 KiB
YAML
Raw Normal View History

2022-12-18 14:28:45 +00:00
---
2023-07-28 09:21:50 +00:00
apiVersion: codemowers.io/v1alpha1
kind: OIDCGWMiddlewareClient
metadata:
name: sso
spec:
displayName: Cameras
uri: 'https://cams.k-space.ee/tiled'
2023-08-13 05:16:26 +00:00
allowedGroups:
- k-space:floor
2023-07-28 09:21:50 +00:00
---
2022-12-18 14:28:45 +00:00
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: camtiler
annotations:
kubernetes.io/ingress.class: traefik
traefik.ingress.kubernetes.io/router.entrypoints: websecure
2023-07-28 09:21:50 +00:00
traefik.ingress.kubernetes.io/router.middlewares: camtiler-sso@kubernetescrd,camtiler-redirect@kubernetescrd
2022-12-18 14:28:45 +00:00
traefik.ingress.kubernetes.io/router.tls: "true"
external-dns.alpha.kubernetes.io/target: traefik.k-space.ee
spec:
rules:
- host: cams.k-space.ee
2023-01-25 07:55:04 +00:00
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: logmower-frontend
port:
number: 8080
- host: cam.k-space.ee
2022-12-18 14:28:45 +00:00
http:
paths:
- pathType: Prefix
path: "/tiled"
backend:
service:
name: camera-tiler
port:
number: 5001
2023-01-25 07:55:04 +00:00
- pathType: Prefix
path: "/m"
backend:
service:
name: camera-tiler
port:
number: 5001
2022-12-18 14:28:45 +00:00
- pathType: Prefix
path: "/events"
backend:
service:
name: logmower-eventsource
port:
number: 3002
- pathType: Prefix
path: "/"
backend:
service:
name: logmower-frontend
port:
number: 8080
tls:
- hosts:
- "*.k-space.ee"
2023-01-25 07:55:04 +00:00
---
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