Support external PostgreSQL
Adds support for external PostgreSQL by only deploying PostgreSQL
resources if postgresql.install=true.
Closes #183 (closed)
Test instructions
-
Deploy Bitnami's PostgreSQL Helm Chart to the cluster
-
Create the role & DB, and enable the required extensions
-
Create secret for PG password:
$ kubectl -n gitlab-system create secret generic externalpg-password --from-literal=password=abcd1234 -
Deploy the GitLab CR:
apiVersion: apps.gitlab.com/v1beta1 kind: GitLab metadata: name: gitlab spec: chart: version: "4.11.3" values: certmanager-issuer: email: you@email.com global: hosts: domain: yourdomain.com ingress: configureCertmanager: true psql: host: externalpg-postgresql.gitlab-system.svc.cluster.local password: secret: externalpg-password key: password postgresql: install: false -
Ensure that migrations pass and the instance comes up and is usable.
Edited by Mitchell Nielsen