Resource Limit enablling for VNFSDK 91/67591/1
authorvaibhav_16dec <vaibhav.chopra@amdocs.com>
Wed, 19 Sep 2018 04:28:55 +0000 (04:28 +0000)
committervaibhav_16dec <vaibhav.chopra@amdocs.com>
Wed, 19 Sep 2018 04:30:03 +0000 (04:30 +0000)
Issue-ID: OOM-1168

Change-Id: I7e0f23159d729621f566837d6273f7f059a29ce1
Signed-off-by: vaibhav_16dec <vaibhav.chopra@amdocs.com>
kubernetes/vnfsdk/templates/deployment.yaml
kubernetes/vnfsdk/values.yaml

index 5b6f923..ee779f4 100644 (file)
@@ -52,6 +52,8 @@ spec:
       - image: "{{ include "common.repository" . }}/{{ .Values.image }}"
         imagePullPolicy: {{ .Values.pullPolicy | default .Values.global.pullPolicy }}
         name: {{ include "common.name" . }}
+        resources:
+{{ toYaml (pluck .Values.flavor .Values.resources| first) | indent 12 }}
         env:
         - name: POSTGRES_SERVICE_HOST
           value: "$(VNFSDK_DBSET_SERVICE_HOST)"
index 0db7744..89630c9 100644 (file)
@@ -61,6 +61,25 @@ nodeSelector: {}
 
 affinity: {}
 
+# Resource Limit flavor -By Default using small 
+flavor: small
+# Segregation for Different environment (Small and Large)
+resources:
+  small:
+    limits:
+      cpu: 2000m
+      memory: 4Gi
+    requests:
+      cpu: 500m
+      memory: 1Gi
+  large:
+    limits:
+      cpu: 4000m
+      memory: 8Gi
+    requests:
+      cpu: 1000m
+      memory: 2Gi
+
 # probe configuration parameters
 liveness:
   initialDelaySeconds: 10