diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b1b964d..86c1a7a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Integration test for cluster_controller written with envtest and ginkgo - Description of failover setting in the Cartridge Kubernetes guide - Section to troubleshooting about CrashLoopBackOff +- Lua memory reserve for tarantool containers ### Changed - Requested verbs for a RBAC role Tarantool: remove all * verbs and resources diff --git a/examples/kv/helm-chart/templates/deployment.yaml b/examples/kv/helm-chart/templates/deployment.yaml index 245c44c3..fc33996d 100644 --- a/examples/kv/helm-chart/templates/deployment.yaml +++ b/examples/kv/helm-chart/templates/deployment.yaml @@ -83,10 +83,10 @@ spec: resources: requests: cpu: "{{ .CPUallocation }}" - memory: "{{ .MemtxMemoryMB }}M" + memory: "{{ add .MemtxMemoryMB $.Values.LuaMemoryReserveMB }}M" limits: cpu: "{{ .CPUallocation }}" - memory: "{{ .MemtxMemoryMB }}M" + memory: "{{ add .MemtxMemoryMB $.Values.LuaMemoryReserveMB }}M" ports: - containerPort: 3301 protocol: TCP diff --git a/examples/kv/helm-chart/values.yaml b/examples/kv/helm-chart/values.yaml index c8e9488b..2b7f97c6 100644 --- a/examples/kv/helm-chart/values.yaml +++ b/examples/kv/helm-chart/values.yaml @@ -4,6 +4,7 @@ ClusterEnv: dev ClusterName: examples-kv-cluster ClusterDomainName: cluster.local TarantoolWorkDir: /var/lib/tarantool +LuaMemoryReserveMB: 2048 image: repository: tarantool/tarantool-operator-examples-kv