From 7ade6700c72f78ac6a3ac2dd36246f360c6fbaa3 Mon Sep 17 00:00:00 2001 From: Yadunand Prem Date: Tue, 12 Nov 2024 00:20:25 -0500 Subject: [PATCH] feat: redefine authentik ingress --- infra/controllers/authentik/authentik.yaml | 10 ------- infra/controllers/authentik/ingress.yaml | 32 ++++++++++++++++++++++ 2 files changed, 32 insertions(+), 10 deletions(-) create mode 100644 infra/controllers/authentik/ingress.yaml diff --git a/infra/controllers/authentik/authentik.yaml b/infra/controllers/authentik/authentik.yaml index f41a1af..9cf2d75 100644 --- a/infra/controllers/authentik/authentik.yaml +++ b/infra/controllers/authentik/authentik.yaml @@ -55,16 +55,6 @@ spec: authentik: error_reporting: enabled: false - server: - ingress: - ingressClassName: traefik - enabled: true - hosts: - - authentik.yadunut.dev - tls: - - secretName: wildcard-cert-yadunut.dev-prod - hosts: - - authentik.yadunut.dev postgresql: enabled: true auth: diff --git a/infra/controllers/authentik/ingress.yaml b/infra/controllers/authentik/ingress.yaml new file mode 100644 index 0000000..061fae0 --- /dev/null +++ b/infra/controllers/authentik/ingress.yaml @@ -0,0 +1,32 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: authentik-ingress + namespace: authentik-system +spec: + ingressClassName: traefik + rules: + - host: authentik.yadunut.dev + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: authentik-server + port: + number: 80 + - host: "*.i.yadunut.dev" + http: + paths: + - path: /outpost.goauthentik.io/ + pathType: Prefix + backend: + service: + name: authentik-server + port: + number: 80 + tls: + - hosts: + - authentik.yadunut.dev + secretName: wildcard-cert-yadunut.dev-prod