aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/aai/charts/aai-spike
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/aai/charts/aai-spike')
-rw-r--r--kubernetes/aai/charts/aai-spike/templates/deployment.yaml2
-rw-r--r--kubernetes/aai/charts/aai-spike/values.yaml18
2 files changed, 17 insertions, 3 deletions
diff --git a/kubernetes/aai/charts/aai-spike/templates/deployment.yaml b/kubernetes/aai/charts/aai-spike/templates/deployment.yaml
index edf6ce84fe..a6801e1b14 100644
--- a/kubernetes/aai/charts/aai-spike/templates/deployment.yaml
+++ b/kubernetes/aai/charts/aai-spike/templates/deployment.yaml
@@ -103,7 +103,7 @@ spec:
- mountPath: /var/log/onap
name: {{ include "common.fullname" . }}-logs
resources:
-{{ toYaml .Values.resources | indent 12 }}
+{{ toYaml (pluck .Values.flavor .Values.resources| first) | indent 12 }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 10 }}
diff --git a/kubernetes/aai/charts/aai-spike/values.yaml b/kubernetes/aai/charts/aai-spike/values.yaml
index 6429d3f119..4fc3a0bdd4 100644
--- a/kubernetes/aai/charts/aai-spike/values.yaml
+++ b/kubernetes/aai/charts/aai-spike/values.yaml
@@ -25,7 +25,7 @@ global:
# application image
image: onap/spike:1.0-STAGING-latest
-
+flavor: small
# application configuration
config:
keyStorePassword: OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
@@ -60,7 +60,21 @@ service:
ingress:
enabled: false
-resources: {}
+resources:
+ small:
+ limits:
+ cpu: 2
+ memory: 4Gi
+ requests:
+ cpu: 2
+ memory: 4Gi
+ large:
+ limits:
+ cpu: 4
+ memory: 8Gi
+ requests:
+ cpu: 4
+ memory: 8Gi
# XML bean configuration
event: