Skip to content

Commit 3598ed6

Browse files
authored
Merge pull request #115 from jiaozifs/feat/support_k8s
Feat/support k8s
2 parents ce3ee54 + b22853e commit 3598ed6

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
# See README.md for details.
44
replicas: 1
55
db: ""
6-
home_path: "/app/data"
6+
home_path: "/app"
77
port: 34913
88
ingress_name: nginx
99
log_level: info
10+
claim_name: jiaozifs-home

0 commit comments

Comments
 (0)