diff options
author | Mandeep Khinda <Mandeep.Khinda@amdocs.com> | 2018-09-19 14:37:24 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-09-19 14:37:24 +0000 |
commit | 7a745ca1374365854a8d69b1bdf2f24c1e472f3e (patch) | |
tree | 36426ed871a5b83b60468bf370f887a5f2c126c9 /kubernetes/vnfsdk | |
parent | 81d7e60ab727696c16258a970249d2dce59ba32c (diff) | |
parent | 0acf518a4d79ea749aa1eea3368ef2287eb07cc4 (diff) |
Merge "Resource Limit enablling for VNFSDK"
Diffstat (limited to 'kubernetes/vnfsdk')
-rw-r--r-- | kubernetes/vnfsdk/templates/deployment.yaml | 2 | ||||
-rw-r--r-- | kubernetes/vnfsdk/values.yaml | 19 |
2 files changed, 21 insertions, 0 deletions
diff --git a/kubernetes/vnfsdk/templates/deployment.yaml b/kubernetes/vnfsdk/templates/deployment.yaml index 5b6f9237ce..ee779f408f 100644 --- a/kubernetes/vnfsdk/templates/deployment.yaml +++ b/kubernetes/vnfsdk/templates/deployment.yaml @@ -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)" diff --git a/kubernetes/vnfsdk/values.yaml b/kubernetes/vnfsdk/values.yaml index 0db7744523..89630c9876 100644 --- a/kubernetes/vnfsdk/values.yaml +++ b/kubernetes/vnfsdk/values.yaml @@ -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 |