Skip to content

Commit cb22d2a

Browse files
committed
feat: support bind to pvc
1 parent 0967469 commit cb22d2a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

charts/templates/deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,10 @@ spec:
2222
args: ["--db {{ .Values.db }} --log-level {{ .Values.log_level }} --bs_path {{ .Values.home_path }}/data --listen http://0.0.0.0:{{ .Values.port }} --config {{ .Values.home_path }}/config.yaml"]
2323
ports:
2424
- containerPort: {{ .Values.port }}
25+
volumeMounts:
26+
- name: jiaozifs-home
27+
mountPath: "/app"
28+
volumes:
29+
- name: jiaozifs-home
30+
persistentVolumeClaim:
31+
claimName: {{ .Values.claim_name }}

charts/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ home_path: "/app/data"
77
port: 34913
88
ingress_name: nginx
99
log_level: info
10+
claim_name: jiaozifs-home"

0 commit comments

Comments
 (0)