This commit is contained in:
Morten Olsen
2025-08-22 07:35:50 +02:00
parent cfd2d76873
commit 1b5b5145b0
27 changed files with 485 additions and 343 deletions

View File

@@ -1,9 +1,9 @@
apiVersion: homelab.mortenolsen.pro/v1
kind: AuthentikClient
kind: OidcClient
metadata:
name: '{{ .Release.Name }}'
spec:
server: '{{ .Values.authentikServer }}'
environment: '{{ .Values.environment }}'
redirectUris:
- url: https://localhost:3000/api/v1/authentik/oauth2/callback
matchingMode: strict

View File

@@ -0,0 +1,11 @@
apiVersion: homelab.mortenolsen.pro/v1
kind: ExternalHttpService
metadata:
name: '{{ .Release.Name }}'
spec:
environment: '{{ .Values.environment }}'
subdomain: '{{ .Values.subdomain }}-external'
destination:
host: '{{ .Release.Name }}.{{ .Release.Namespace }}.svc.cluster.local'
port:
number: 80

View File

@@ -25,21 +25,21 @@ spec:
- name: OIDC_ENABLED
value: 'true'
- name: OIDC_DISPLAY_NAME
value: Authentik
value: OIDC
- name: OIDC_CLIENT_ID
valueFrom:
secretKeyRef:
name: authentik-client-{{ .Release.Name }}
name: '{{ .Release.Name }}-client'
key: clientId
- name: OIDC_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: authentik-client-{{ .Release.Name }}
name: '{{ .Release.Name }}-client'
key: clientSecret
- name: OIDC_ISSUER_URL
valueFrom:
secretKeyRef:
name: authentik-client-{{ .Release.Name }}
name: '{{ .Release.Name }}-client'
key: configuration
# !! IMPORTANT !!
@@ -62,7 +62,7 @@ spec:
name: bytestash-data
spec:
accessModes: ['ReadWriteOnce']
storageClassName: '{{ .Values.storageClassName }}'
storageClassName: '{{ .Values.environment }}'
resources:
requests:
storage: 5Gi

View File

@@ -1,5 +1,2 @@
environment: dev/dev
postgresCluster: dev/dev-postgres-cluster
authentikServer: dev/dev-authentik-server
storageClassName: dev-retain
environment: dev
subdomain: bytestash