forked from k-space/kube
68 lines
1.7 KiB
YAML
68 lines
1.7 KiB
YAML
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: camtiler
|
|
annotations:
|
|
kubernetes.io/ingress.class: traefik
|
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
|
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
|
|
path: "/tiled"
|
|
backend:
|
|
service:
|
|
name: camera-tiler
|
|
port:
|
|
number: 5001
|
|
- pathType: Prefix
|
|
path: "/m"
|
|
backend:
|
|
service:
|
|
name: camera-tiler
|
|
port:
|
|
number: 5001
|
|
- 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"
|
|
---
|
|
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
|