Skip to content

Commit 663117c

Browse files
author
n0str
committed
Add persistent volume claims
1 parent 87573ec commit 663117c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ spec:
5151
mountPath: /usr/src/app/config/production.json
5252
subPath: "production.json"
5353
- name: {{ include "codexdocs.fullname" . }}-db
54-
mountPath: "/mnt/db"
54+
mountPath: {{ .Values.configuration.production.database }}
5555
- name: {{ include "codexdocs.fullname" . }}-uploads
56-
mountPath: "/mnt/uploads"
56+
mountPath: {{ .Values.configuration.production.uploads }}
5757
ports:
5858
- name: http
5959
containerPort: 3000

values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ configuration:
2121
port: 3000
2222
database: "/mnt/db"
2323
rcFile: "./.codexdocsrc"
24-
"uploads": "/mnt/uploads"
24+
"uploads": "/usr/src/app/public/uploads"
2525
"secret": "iamasecretstring"
2626

2727
image:

0 commit comments

Comments
 (0)