50 lines
927 B
YAML
50 lines
927 B
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-internal
|
|
labels:
|
|
name: spoolman-internal
|
|
spec:
|
|
rules:
|
|
- host: spoolman.spoolman.k8s
|
|
http:
|
|
paths:
|
|
- pathType: Prefix
|
|
path: "/"
|
|
backend:
|
|
service:
|
|
name: spoolman
|
|
port:
|
|
number: 8080
|