aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/aai/charts/aai-data-router
diff options
context:
space:
mode:
authorMandeep Khinda <Mandeep.Khinda@amdocs.com>2018-09-21 03:53:40 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-21 03:53:40 +0000
commit885cc2df865888d8f68b218e8fe30f40d62b4fde (patch)
tree94fde87ba926e56a0aa6ce04107a2d54ce37aa1c /kubernetes/aai/charts/aai-data-router
parent90bf254e13bd4af58edb2d6ef305a18955d66f8c (diff)
parent9fcfbce60a052328f92af96be44f9d92cbe8d251 (diff)
Merge "Fix: aai resource limits- charts except cassandra"
Diffstat (limited to 'kubernetes/aai/charts/aai-data-router')
-rw-r--r--kubernetes/aai/charts/aai-data-router/templates/deployment.yaml2
-rw-r--r--kubernetes/aai/charts/aai-data-router/values.yaml18
2 files changed, 18 insertions, 2 deletions
diff --git a/kubernetes/aai/charts/aai-data-router/templates/deployment.yaml b/kubernetes/aai/charts/aai-data-router/templates/deployment.yaml
index 4b58c7360d..585cc4ff3d 100644
--- a/kubernetes/aai/charts/aai-data-router/templates/deployment.yaml
+++ b/kubernetes/aai/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/kubernetes/aai/charts/aai-data-router/values.yaml b/kubernetes/aai/charts/aai-data-router/values.yaml
index 10521abaf9..06c64c30d7 100644
--- a/kubernetes/aai/charts/aai-data-router/values.yaml
+++ b/kubernetes/aai/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