infra/k8s/spoolman/ingress.yaml
2024-10-13 16:54:22 -07:00

75 lines
1.5 KiB
YAML

apiVersion: v1
kind: Service
metadata:
name: spoolman
spec:
selector:
app: spoolman
ports:
- port: 8080
name: http
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: spoolman
labels:
name: spoolman
annotations:
traefik.ingress.kubernetes.io/router.middlewares: kube-system-traefik-forward-auth@kubernetescrd
spec:
rules:
- host: spoolman.k8s.home.finn.io
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: spoolman
port:
number: 8080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: spoolman.herzfeld.casa
labels:
name: spoolman.herzfeld.casa
annotations:
traefik.ingress.kubernetes.io/router.middlewares: kube-system-traefik-forward-auth-herzfeld-casa@kubernetescrd
cert-manager.io/cluster-issuer: letsencrypt
spec:
tls:
- hosts: [spoolman.herzfeld.casa]
secretName: spoolman.herzfeld.casa
rules:
- host: spoolman.herzfeld.casa
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: spoolman
port:
number: 8080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: spoolman-internal
labels:
name: spoolman-internal
spec:
rules:
- host: spoolman.spoolman.k8s
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: spoolman
port:
number: 8080