#Deploy using self hosted postgres

1 messages · Page 1 of 1 (latest)

bitter plume
#

I'm trying to deploy Authentik over top of a postgres database that I spun up using postgres operator (pgo project). Is there a way to pass in the variables of: database address, port, db, user and password from a kubernetes secret?

I may just be missing it in plain view but I can't find where to pass in those secretRefs

stark bay
#

Is this what you're looking for?

bitter plume
#

@stark bay almost - I'm looking for the specific way to set authentik.postgresql.host / name / user / password / port based on a kubernetes secret

#

I want it to reference an existing kubernetes secret

stark bay
bitter plume
#

@stark bay I tried doing this:

  authentik:
    log_level: trace
    secret_key: "IheH6YzOpbCQDuLVpmIfJbtI9JqsE9tkCsoo8UDnMpc+iaXd"
    # This sends anonymous usage-data, stack traces on errors and
    # performance data to sentry.beryju.org, and is fully opt-in
    error_reporting:
      enabled: false
    envValueFrom:
      AUTHENTIK_POSTGRESQL__HOST:
        secretKeyRef:
          key: host
          name: hippo-pguser-hippo
      AUTHENTIK_POSTGRESQL__PORT:
        secretKeyRef:
          key: port
          name: hippo-pguser-hippo
      AUTHENTIK_POSTGRESQL__NAME:
        secretKeyRef:
          key: database
          name: hippo-pguser-hippo
      AUTHENTIK_POSTGRESQL__USER:
        secretKeyRef:
          key: user
          name: hippo-pguser-hippo
      AUTHENTIK_POSTGRESQL__PASSWORD:
        secretKeyRef:
          key: password
          name: hippo-pguser-hippo
#

But it didn't work: