UNCLASSIFIED - NO CUI

Skip to content

In cluster postgres data doesn't persist on restart

In BB 2.8.0, when deploying gitlab with in cluster postgres, all data is lost when deleting the pod or running a rollout restart. It appears the mount for the data dir to the pv is missing.

Adding the following mount to the statefulset resolved this issue for me:

- mountPath: /var/lib/postgresql/pgdata
  name: data
Edited by Kenneth Maguire