Skip to main content
SeekrFlow stores its data in PostgreSQL. You created the instance in Provision PostgreSQL. This page creates SeekrFlow’s databases and login roles inside it:
  • Databases: seekrflow, agents, user_auth, metaflow, and mlflow, plus keycloak if you enable Keycloak. Each has its own read-write and read-only roles.
  • Login roles: seekrflow_app, which SeekrFlow runs as, and seekrflow_keycloak if you enable Keycloak.
Keycloak gets its own role because it stores password hashes and client secrets. SeekrFlow’s role can’t read Keycloak’s tables, and Keycloak’s role can’t reach the other databases. Run these steps as your instance’s admin account, the one you set when you created the instance. SeekrFlow also uses this account for database migrations.

Create the databases and roles

sfe reads the admin and seekrflow_app credentials from the pg-creds secret you created in Create SeekrFlow secrets. It reads the Keycloak credentials from keycloak-credentials.
Include -r. Without it, sfe can’t tell whether you enabled Keycloak, and asks for a Keycloak password.If your database is reachable only from inside your network, add --in-cluster. sfe then runs the setup as a job inside the cluster.
Last modified on October 16, 2026