Skip to content

Commit 74b0283

Browse files
committed
cartridge helm chart: add ability to change TARANTOOL_WORKDIR
1 parent 5c776f9 commit 74b0283

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1010
### Added
1111
- Support custom cluster domain name via variable `ClusterDomainName` in cartrige chart `values.yaml`
1212
- New chart for deploying ready-to-use crud based application
13+
- Ability to change TARANTOOL_WORKDIR in the Cartridge helm chart and the **default value is set to** `/var/lib/tarantool`

examples/kv/helm-chart/templates/deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ spec:
7979
image: "{{ $.Values.image.repository }}:{{ $.Values.image.tag }}"
8080
volumeMounts:
8181
- name: www
82-
mountPath: "/data"
82+
mountPath: "{{ $.Values.TarantoolWorkDir }}"
8383
resources:
8484
requests:
8585
cpu: "{{ .CPUallocation }}"
@@ -110,6 +110,8 @@ spec:
110110
value: "{{ mul .MemtxMemoryMB 1048576 }}"
111111
- name: TARANTOOL_BUCKET_COUNT
112112
value: "30000"
113+
- name: TARANTOOL_WORKDIR
114+
value: "{{ $.Values.TarantoolWorkDir }}"
113115
- name: TARANTOOL_ADVERTISE_TMP
114116
valueFrom:
115117
fieldRef:

examples/kv/helm-chart/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
ClusterEnv: dev
44
ClusterName: examples-kv-cluster
55
ClusterDomainName: cluster.local
6+
TarantoolWorkDir: /var/lib/tarantool
67

78
image:
89
repository: tarantool/tarantool-operator-examples-kv

0 commit comments

Comments
 (0)