summaryrefslogtreecommitdiffstats
path: root/kubernetes/portal/components/portal-cassandra/templates
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2021-02-05 21:33:31 +0100
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>2021-02-08 13:44:09 +0100
commit6e41a2c787c9c719fcc2226f0cd9740d2b9df43f (patch)
tree7362a622e9921b96338ef4b919cd9f36e136d2b2 /kubernetes/portal/components/portal-cassandra/templates
parentad1a3eca9ea049cab7d99569be53c4a6c781be02 (diff)
[PORTAL][CASSANDRA] Configure Heap
When on small flavor, limits set are too small to allow a smooth start of cassandra with usual Heap configurations. This patch adds heap configuration when on small. Issue-ID: PORTAL-1037 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: Icdbc4fd5892c3f350642ffdd924e4c36f0135019
Diffstat (limited to 'kubernetes/portal/components/portal-cassandra/templates')
-rw-r--r--kubernetes/portal/components/portal-cassandra/templates/deployment.yaml8
1 files changed, 7 insertions, 1 deletions
diff --git a/kubernetes/portal/components/portal-cassandra/templates/deployment.yaml b/kubernetes/portal/components/portal-cassandra/templates/deployment.yaml
index 84a78ab977..39cd0294c8 100644
--- a/kubernetes/portal/components/portal-cassandra/templates/deployment.yaml
+++ b/kubernetes/portal/components/portal-cassandra/templates/deployment.yaml
@@ -1,7 +1,7 @@
{{/*
# Copyright (c) 2017 Amdocs, Bell Canada
# Modifications Copyright (c) 2018 AT&T
-# Modifications Copyright (c) 2020 Nokia
+# Modifications Copyright (c) 2020 Nokia, Orange
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -108,6 +108,12 @@ spec:
value: rack1
- name: CASSANDRA_ENABLE_RPC
value: "true"
+ {{- if eq "small" .Values.flavor }}
+ - name: MAX_HEAP_SIZE
+ value: {{ .Values.resources.small.heap.max }}
+ - name: HEAP_NEWSIZE
+ value: {{ .Values.resources.small.heap.new }}
+ {{- end }}
volumeMounts:
- mountPath: /etc/localtime
name: localtime