kube/camtiler/ingress.yml

86 lines
2.0 KiB
YAML
Raw Normal View History

2022-12-18 14:28:45 +00:00
---
2024-07-27 00:15:41 +00:00
apiVersion: codemowers.cloud/v1beta1
kind: OIDCMiddlewareClient
2023-07-28 09:21:50 +00:00
metadata:
name: sso
spec:
displayName: Cameras
2024-08-03 02:02:29 +00:00
uri: 'https://cam.k-space.ee/tiled'
2023-08-13 05:16:26 +00:00
allowedGroups:
- k-space:floor
- k-space:friends
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
2024-08-03 02:02:29 +00:00
traefik.ingress.kubernetes.io/router.middlewares: camtiler-sso@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
2024-08-03 02:02:29 +00:00
external-dns.alpha.kubernetes.io/hostname: cams.k-space.ee,cam.k-space.ee
2022-12-18 14:28:45 +00:00
spec:
rules:
2023-01-25 07:55:04 +00:00
- 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.io/v1alpha1
2023-01-25 07:55:04 +00:00
kind: Middleware
metadata:
2024-08-03 02:02:29 +00:00
name: cams-redirect
2023-01-25 07:55:04 +00:00
spec:
redirectRegex:
regex: ^https://cams.k-space.ee/(.*)$
replacement: https://cam.k-space.ee/$1
2024-08-03 02:02:29 +00:00
permanent: true
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: cams
spec:
entryPoints:
- websecure
routes:
- match: Host(`cams.k-space.ee`)
kind: Rule
middlewares:
- name: cams-redirect
services:
- kind: TraefikService
name: api@internal