summaryrefslogtreecommitdiffstats
path: root/charts/aai-data-router
diff options
context:
space:
mode:
authorrajeshkalai <rajesh.kalaiselvan@amdocs.com>2018-09-20 06:36:28 -0400
committerMandeep Khinda <mandeep.khinda@amdocs.com>2018-09-21 02:52:33 +0000
commit47c1de317217ff79610cdbf8572ff4233c3f5f51 (patch)
treed2a5638963e8099234d38d5b3c840729a653c80f /charts/aai-data-router
parentf434c1e342c6f3e88a81d20bc51d52379fc5a3e0 (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-data-router')
-rw-r--r--charts/aai-data-router/templates/deployment.yaml2
-rw-r--r--charts/aai-data-router/values.yaml18
2 files changed, 18 insertions, 2 deletions
diff --git a/charts/aai-data-router/templates/deployment.yaml b/charts/aai-data-router/templates/deployment.yaml
index 4b58c73..585cc4f 100644
--- a/charts/aai-data-router/templates/deployment.yaml
+++ b/charts/aai-data-router/templates/deployment.yaml
@@ -110,6 +110,8 @@ spec:
port: {{ .Values.service.internalPort }}
initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
periodSeconds: {{ .Values.readiness.periodSeconds }}
+ resources:
+{{ toYaml (pluck .Values.flavor .Values.resources| first) | indent 12 }}
volumes:
- name: localtime
hostPath:
diff --git a/charts/aai-data-router/values.yaml b/charts/aai-data-router/values.yaml
index 10521ab..06c64c3 100644
--- a/charts/aai-data-router/values.yaml
+++ b/charts/aai-data-router/values.yaml
@@ -24,7 +24,7 @@ repository: nexus3.onap.org:10001
image: onap/data-router:1.3-STAGING-latest
pullPolicy: Always
restartPolicy: Always
-
+flavor: small
dockerhubRepository: registry.hub.docker.com
ubuntuInitImage: oomk8s/ubuntu-init:2.0.0
@@ -82,7 +82,6 @@ persistence:
mountPath: /dockerdata-nfs
mountSubPath: aai/data-router/logs
-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
@@ -100,3 +99,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