From 1d4e5051d8aae77426ee370646dbdb01ccd8fca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Fri, 26 Jul 2024 13:03:20 +0300 Subject: [PATCH] Add Prusa 3D printer web endpoint --- oidc-gateway/prusa.yaml | 53 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 oidc-gateway/prusa.yaml diff --git a/oidc-gateway/prusa.yaml b/oidc-gateway/prusa.yaml new file mode 100644 index 0000000..5a650ab --- /dev/null +++ b/oidc-gateway/prusa.yaml @@ -0,0 +1,53 @@ +--- +apiVersion: codemowers.io/v1alpha1 +kind: OIDCGWMiddlewareClient +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: oidc-gateway-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"