enable authentik operator

This commit is contained in:
Morten Olsen
2025-12-23 04:11:29 +01:00
parent d6107d13a0
commit 7cb233b845
7 changed files with 19 additions and 20 deletions

View File

@@ -1,6 +0,0 @@
apiVersion: homelab.mortenolsen.pro/v1
kind: PostgresDatabase
metadata:
name: '{{ .Release.Name }}-authentik'
spec:
environment: '{{ .Values.globals.environment }}'

View File

@@ -1,10 +0,0 @@
apiVersion: homelab.mortenolsen.pro/v1
kind: GenerateSecret
metadata:
name: "{{ .Release.Name }}-secret"
spec:
fields:
- name: password
encoding: hex
length: 64

View File

@@ -5,9 +5,18 @@ metadata:
spec:
# Reference to a secret containing the PostgreSQL connection URL
# The secret must have a key "url" (or specify a different key)
postgresSecretRef:
name: "{{ .Release.Name }}-authentik"
key: url
postgresHostSecretRef:
name: "{{ .Release.Name }}-pg-connection"
key: host
postgresUserSecretRef:
name: "{{ .Release.Name }}-pg-connection"
key: user
postgresPasswordSecretRef:
name: "{{ .Release.Name }}-pg-connection"
key: password
postgresNameSecretRef:
name: "{{ .Release.Name }}-pg-connection"
key: database
# External hostname for Authentik
host: test-auth.olsen.cloud
# Optional: Authentik container image

View File

@@ -0,0 +1,6 @@
apiVersion: homelab.mortenolsen.pro/v1
kind: PostgresDatabase
metadata:
name: '{{ .Release.Name }}'
spec:
environment: prod