bring back online with new shared db

This commit is contained in:
2025-06-15 09:49:19 -04:00
parent ac45bd8d74
commit 8767034c22

View File

@@ -1,6 +1,6 @@
authentik: authentik:
server: server:
replicas: 0 replicas: 3
volumeMounts: volumeMounts:
- name: cert-dubyatp-xyz - name: cert-dubyatp-xyz
readOnly: true readOnly: true
@@ -16,7 +16,7 @@ authentik:
labels: labels:
metrics_enabled: "true" metrics_enabled: "true"
worker: worker:
replicas: 0 replicas: 3
volumeMounts: volumeMounts:
- name: cert-dubyatp-xyz - name: cert-dubyatp-xyz
readOnly: true readOnly: true
@@ -25,40 +25,6 @@ authentik:
- name: cert-dubyatp-xyz - name: cert-dubyatp-xyz
secret: secret:
secretName: cert-dubyatp-xyz secretName: cert-dubyatp-xyz
postgresql:
enabled: true
image:
repository: bitnami/postgresql
tag: 15.8.0-debian-12-r18
auth:
username: authentik
database: authentik
existingSecret: "authentik-credentials"
secretKeys:
adminPasswordKey: "admin-password"
userPasswordKey: "user-password"
replicationPasswordKey: "replication-password"
primary:
podAnnotations:
backup.velero.io/backup-volumes: data
extendedConfiguration: |
max_connections = 500
resourcesPreset: "none"
persistence:
enabled: true
storageClass: weyma-shared
accessModes:
- ReadWriteOnce
readReplicas:
resourcesPreset: "none"
backup:
resourcesPreset: "none"
passwordUpdateJob:
resourcesPreset: "none"
volumePermissions:
resourcesPreset: "none"
metrics:
resourcesPreset: "none"
redis: redis:
enabled: true enabled: true
architecture: standalone architecture: standalone
@@ -85,11 +51,20 @@ authentik:
secretKeyRef: secretKeyRef:
name: authentik-credentials name: authentik-credentials
key: authentik-secret-key key: authentik-secret-key
- name: AUTHENTIK_POSTGRESQL__HOST
value: weyma-pgsql-rw.cloudnativepg.svc.cluster.local
- name: AUTHENTIK_POSTGRESQL__NAME
value: authentik
- name: AUTHENTIK_POSTGRESQL__USER
valueFrom:
secretKeyRef:
name: authentik-db-auth
key: username
- name: AUTHENTIK_POSTGRESQL__PASSWORD - name: AUTHENTIK_POSTGRESQL__PASSWORD
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: authentik-credentials name: authentik-db-auth
key: user-password key: password
additionalObjects: additionalObjects:
- apiVersion: networking.k8s.io/v1 - apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
@@ -153,3 +128,28 @@ authentik:
remoteRef: remoteRef:
key: authentik key: authentik
property: user-password property: user-password
- apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: authentik-db-auth
spec:
data:
- remoteRef:
conversionStrategy: Default
decodingStrategy: None
key: cloudnativepg
metadataPolicy: None
property: authentik_pw
secretKey: password
refreshInterval: 1h
secretStoreRef:
kind: ClusterSecretStore
name: weyma-vault
target:
template:
data:
username: authentik
password: "{{ .password }}"
creationPolicy: Owner
deletionPolicy: Retain
name: authentik-db-auth