From 36d3bf5634240614de576c18e8c1878010c2c3a5 Mon Sep 17 00:00:00 2001 From: alexlebens Date: Fri, 16 Aug 2024 21:22:14 -0500 Subject: [PATCH] switch to tailscale ingress --- .../templates/ingress-route.yaml | 33 ------------------- .../calibre-server/templates/middleware.yaml | 27 --------------- .../cl01tl/applications/homepage/values.yaml | 2 +- 3 files changed, 1 insertion(+), 61 deletions(-) delete mode 100644 clusters/cl01tl/applications/calibre-server/templates/ingress-route.yaml delete mode 100644 clusters/cl01tl/applications/calibre-server/templates/middleware.yaml diff --git a/clusters/cl01tl/applications/calibre-server/templates/ingress-route.yaml b/clusters/cl01tl/applications/calibre-server/templates/ingress-route.yaml deleted file mode 100644 index 626b128f6..000000000 --- a/clusters/cl01tl/applications/calibre-server/templates/ingress-route.yaml +++ /dev/null @@ -1,33 +0,0 @@ -apiVersion: traefik.io/v1alpha1 -kind: IngressRoute -metadata: - name: calibre-server - namespace: {{ .Release.Namespace }} - labels: - app.kubernetes.io/name: calibre-server - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/version: {{ .Chart.AppVersion }} - app.kubernetes.io/component: web - app.kubernetes.io/part-of: {{ .Release.Name }} -spec: - entryPoints: - - websecure - routes: - - kind: Rule - match: Host(`calibre-server.alexlebens.net`) - middlewares: - - name: "authentik-{{ .Release.Name }}" - namespace: authentik - priority: 10 - services: - - kind: Service - name: calibre-server-web - port: 80 - - kind: Rule - match: Host(`calibre-server.alexlebens.net`) && PathPrefix(`/outpost.goauthentik.io/`) - priority: 15 - services: - - kind: Service - name: authentik-outpost-proxy - port: 9000 - namespace: authentik diff --git a/clusters/cl01tl/applications/calibre-server/templates/middleware.yaml b/clusters/cl01tl/applications/calibre-server/templates/middleware.yaml deleted file mode 100644 index c646a0aca..000000000 --- a/clusters/cl01tl/applications/calibre-server/templates/middleware.yaml +++ /dev/null @@ -1,27 +0,0 @@ -apiVersion: traefik.io/v1alpha1 -kind: Middleware -metadata: - name: "authentik-{{ .Release.Name }}" - namespace: authentik - labels: - app.kubernetes.io/name: "authentik-{{ .Release.Name }}" - app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/version: {{ .Chart.AppVersion }} - app.kubernetes.io/component: auth - app.kubernetes.io/part-of: {{ .Release.Name }} -spec: - forwardAuth: - address: http://authentik-outpost-proxy.authentik:9000/outpost.goauthentik.io/auth/traefik - trustForwardHeader: true - authResponseHeaders: - - X-authentik-username - - X-authentik-groups - - X-authentik-email - - X-authentik-name - - X-authentik-uid - - X-authentik-jwt - - X-authentik-meta-jwks - - X-authentik-meta-outpost - - X-authentik-meta-provider - - X-authentik-meta-app - - X-authentik-meta-version diff --git a/clusters/cl01tl/applications/homepage/values.yaml b/clusters/cl01tl/applications/homepage/values.yaml index 5643a0b53..937ffcdc6 100644 --- a/clusters/cl01tl/applications/homepage/values.yaml +++ b/clusters/cl01tl/applications/homepage/values.yaml @@ -242,7 +242,7 @@ homepage: - Calibre Server: icon: calibre.png description: Calibre Content Server - href: https://calibre-server.alexlebens.net + href: https://calibre-server-cl01tl.boreal-beaufort.ts.net/ siteMonitor: http://calibre-server-web.calibre-server:80 statusStyle: dot - Code: