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 | 9fcfbce60a052328f92af96be44f9d92cbe8d251 (patch) | |
tree | c71d3504f703c61047bf9626102bfe6d1169e2a4 /kubernetes/aai/charts/aai-traversal | |
parent | 37cae2542ba41720da3179f5955401fc0ed66184 (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 'kubernetes/aai/charts/aai-traversal')
-rw-r--r-- | kubernetes/aai/charts/aai-traversal/templates/deployment.yaml | 2 | ||||
-rw-r--r-- | kubernetes/aai/charts/aai-traversal/values.yaml | 18 |
2 files changed, 17 insertions, 3 deletions
diff --git a/kubernetes/aai/charts/aai-traversal/templates/deployment.yaml b/kubernetes/aai/charts/aai-traversal/templates/deployment.yaml index 3cedaecc9b..fb07427fd1 100644 --- a/kubernetes/aai/charts/aai-traversal/templates/deployment.yaml +++ b/kubernetes/aai/charts/aai-traversal/templates/deployment.yaml @@ -352,7 +352,7 @@ spec: initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} periodSeconds: {{ .Values.readiness.periodSeconds }} 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/kubernetes/aai/charts/aai-traversal/values.yaml b/kubernetes/aai/charts/aai-traversal/values.yaml index a3410adacc..83bd1a9fad 100644 --- a/kubernetes/aai/charts/aai-traversal/values.yaml +++ b/kubernetes/aai/charts/aai-traversal/values.yaml @@ -26,7 +26,7 @@ repository: nexus3.onap.org:10001 image: onap/aai-traversal:1.3-STAGING-latest pullPolicy: Always restartPolicy: Always - +flavor: small # application configuration config: @@ -75,7 +75,6 @@ service: ingress: enabled: false -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 @@ -93,3 +92,18 @@ resources: {} # requests: # cpu: 2 # memory: 4Gi +resources: + small: + limits: + cpu: 2 + memory: 4Gi + requests: + cpu: 2 + memory: 4Gi + large: + limits: + cpu: 4 + memory: 8Gi + requests: + cpu: 4 + memory: 8Gi |