Postgres was in a crash loop as initdb expected a blank directory but instead the directory contained lost+found. Resolved by adding sub path to the postgres volume mount. volumeMounts: - name: data mountPath: /var/lib/postgresql/data subPath: data
Postgres was in a crash loop as initdb expected a blank directory but instead the directory contained lost+found.
Resolved by adding sub path to the postgres volume mount.