The workdir of default image loicsharma/baget:0b46f0ec87216e1dc6839277712ee07c1c2b611a is in /app, so SQLite database will be saved in /app/baget.db
{{- if eq .Values.database.type "Sqlite" .}}
- name: Database__ConnectionString
value: "Data Source=baget.db"
{{- end }}
But the persistent mount is in /app/packages. it causes SQLite database missing after restarting the pod
volumeMounts:
- name: {{ template "baget.fullname" . }}-data
mountPath: /app/packages
The workdir of default image
loicsharma/baget:0b46f0ec87216e1dc6839277712ee07c1c2b611ais in/app, so SQLite database will be saved in/app/baget.dbBut the persistent mount is in
/app/packages. it causes SQLite database missing after restarting the pod