System Information
- Strapi Version: 4.1.7
- Operating System: in kubernetes, docker image: strapi/base which uses debian 9
- Database: postgres and sqlite (problem is present in both)
- Node Version: v14.16.0
- NPM Version: 6.14.11
- Yarn Version: 1.22.5
I create a strapi project using
npx create-strapi-app@latest project-name --quickstart
Configured the db connection and deployed to the Kubernetes.
At first I used postgresql. The problem was whenever a pod restrarts, the db fields for the contents gets deleted. Which was weird.
Then I though maybe there is a problem with postgres so I tried sqlite and mounted the db file to a persistence volume. Still the same problem.
However I noticed that when I add content it add some files to src/api/<content-name>/
.
And since those files are not in the persistent part, they are deleted on a restart.
At this point I am confused. Like should I mount another volume to here? Is there any step I am missing?