diff options
author | rajeshkalai <rajesh.kalaiselvan@amdocs.com> | 2018-09-20 06:36:28 -0400 |
---|---|---|
committer | Mandeep Khinda <mandeep.khinda@amdocs.com> | 2018-09-21 02:52:33 +0000 |
commit | 47c1de317217ff79610cdbf8572ff4233c3f5f51 (patch) | |
tree | d2a5638963e8099234d38d5b3c840729a653c80f /charts/aai-elasticsearch | |
parent | f434c1e342c6f3e88a81d20bc51d52379fc5a3e0 (diff) |
Fix: aai resource limits- charts except cassandra
Issue-ID: OOM-1147
Change-Id: I438d404b0717b5179857d3226590b28c0372848d
Signed-off-by: rajeshkalai <rajesh.kalaiselvan@amdocs.com>
Fix: request -resource limits for aai
Issue-ID: OOM-1147
Change-Id: I5898e2c6c6b4c6cc1c302c287b15f5697bf2e36b
Signed-off-by: rajeshkalai <rajesh.kalaiselvan@amdocs.com>
Diffstat (limited to 'charts/aai-elasticsearch')
-rw-r--r-- | charts/aai-elasticsearch/templates/deployment.yaml | 2 | ||||
-rw-r--r-- | charts/aai-elasticsearch/values.yaml | 18 |
2 files changed, 18 insertions, 2 deletions
diff --git a/charts/aai-elasticsearch/templates/deployment.yaml b/charts/aai-elasticsearch/templates/deployment.yaml index acb0599..e1f3b39 100644 --- a/charts/aai-elasticsearch/templates/deployment.yaml +++ b/charts/aai-elasticsearch/templates/deployment.yaml @@ -87,7 +87,7 @@ spec: - name: elasticsearch-data mountPath: /usr/share/elasticsearch/data resources: -{{ toYaml .Values.resources | indent 10 }} +{{ toYaml (pluck .Values.flavor .Values.resources| first) | indent 12 }} {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 8 }} diff --git a/charts/aai-elasticsearch/values.yaml b/charts/aai-elasticsearch/values.yaml index 0cb1a36..c6afbb5 100644 --- a/charts/aai-elasticsearch/values.yaml +++ b/charts/aai-elasticsearch/values.yaml @@ -23,6 +23,8 @@ dockerhubRepository: docker.io image: elasticsearch:2.4.1 pullPolicy: Always +flavor: small + # application configuration config: tcpPort: 8443 @@ -78,7 +80,6 @@ persistence: mountPath: /dockerdata-nfs mountSubPath: aai/elasticsearch/data -resources: {} # We usually recommend not to specify default resources and to leave this as a conscious # choice for the user. This also increases chances charts run on environments with little # resources, such as Minikube. If you do want to specify resources, uncomment the following @@ -96,3 +97,18 @@ resources: {} # requests: # cpu: 2 # memory: 4Gi +resources: + small: + limits: + cpu: 2 + memory: 4Gi + requests: + cpu: 1 + memory: 2Gi + large: + limits: + cpu: 4 + memory: 8Gi + requests: + cpu: 4 + memory: 8Gi |