55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
# yamllint disable rule:line-length
|
|
---
|
|
apiVersion: codemowers.cloud/v1beta1
|
|
kind: OIDCMiddlewareClient
|
|
metadata:
|
|
name: prusa
|
|
spec:
|
|
displayName: Prusa 3D printer
|
|
uri: 'https://prusa.k-space.ee'
|
|
allowedGroups:
|
|
- k-space:floor
|
|
headerMapping:
|
|
email: Remote-Email
|
|
groups: Remote-Groups
|
|
name: Remote-Name
|
|
user: Remote-Username
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: prusa
|
|
spec:
|
|
type: ExternalName
|
|
externalName: 100.101.3.2
|
|
ports:
|
|
- name: http
|
|
port: 80
|
|
protocol: TCP
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: prusa
|
|
annotations:
|
|
kubernetes.io/ingress.class: traefik
|
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
|
traefik.ingress.kubernetes.io/router.middlewares: passmower-prusa@kubernetescrd
|
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
|
external-dns.alpha.kubernetes.io/target: traefik.k-space.ee
|
|
spec:
|
|
rules:
|
|
- host: prusa.k-space.ee
|
|
http:
|
|
paths:
|
|
- pathType: Prefix
|
|
path: "/"
|
|
backend:
|
|
service:
|
|
name: prusa
|
|
port:
|
|
name: http
|
|
tls:
|
|
- hosts:
|
|
- "*.k-space.ee"
|