diff options
author | GregSulek <gsulek@amdocs.com> | 2018-09-18 19:39:03 -0400 |
---|---|---|
committer | GregSulek <gsulek@amdocs.com> | 2018-09-18 19:43:05 -0400 |
commit | a4ce0b257ff7c3fc422c191414a99caa85430f79 (patch) | |
tree | 7204c1d02e2191bb9c6220f43de0ee520eb4c59e | |
parent | c196546bae5346d162b3fb20de96d9df8fe260ca (diff) |
Add Resource Limits for uui
flavor name removed from global
Issue-ID: OOM-1165
Change-Id: I8da4cf5de40182567edaa44544bab074d34accf9
Signed-off-by: GregSulek <gsulek@amdocs.com>
-rw-r--r-- | kubernetes/uui/charts/uui-server/templates/deployment.yaml | 2 | ||||
-rw-r--r-- | kubernetes/uui/charts/uui-server/values.yaml | 25 | ||||
-rw-r--r-- | kubernetes/uui/templates/deployment.yaml | 2 | ||||
-rw-r--r-- | kubernetes/uui/values.yaml | 25 |
4 files changed, 37 insertions, 17 deletions
diff --git a/kubernetes/uui/charts/uui-server/templates/deployment.yaml b/kubernetes/uui/charts/uui-server/templates/deployment.yaml index e1c0d77baa..0a73fff646 100644 --- a/kubernetes/uui/charts/uui-server/templates/deployment.yaml +++ b/kubernetes/uui/charts/uui-server/templates/deployment.yaml @@ -45,6 +45,8 @@ spec: initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }} periodSeconds: {{ .Values.liveness.periodSeconds }} {{ end -}} + resources: +{{ toYaml (pluck .Values.flavor .Values.resources| first) | indent 12 }} readinessProbe: tcpSocket: port: {{ .Values.service.internalPort }} diff --git a/kubernetes/uui/charts/uui-server/values.yaml b/kubernetes/uui/charts/uui-server/values.yaml index 25a9538866..ecc93c0a7b 100644 --- a/kubernetes/uui/charts/uui-server/values.yaml +++ b/kubernetes/uui/charts/uui-server/values.yaml @@ -21,6 +21,8 @@ global: subChartsOnly: enabled: true +flavor: small + # application image repository: nexus3.onap.org:10001 image: onap/usecase-ui/usecase-ui-server:1.1.1 @@ -63,7 +65,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 @@ -74,10 +75,18 @@ resources: {} # ref: http://kubernetes.io/docs/user-guide/compute-resources/ # Minimum memory for development is 2 CPU cores and 4GB memory # Minimum memory for production is 4 CPU cores and 8GB memory -#resources: -# limits: -# cpu: 2 -# memory: 4Gi -# requests: -# cpu: 2 -# memory: 4Gi +resources: + small: + limits: + cpu: 250m + memory: 250Mi + requests: + cpu: 250m + memory: 250Mi + large: + limits: + cpu: 500m + memory: 500Mi + requests: + cpu: 500m + memory: 500Mi diff --git a/kubernetes/uui/templates/deployment.yaml b/kubernetes/uui/templates/deployment.yaml index 9578d9c5d8..5d564cf902 100644 --- a/kubernetes/uui/templates/deployment.yaml +++ b/kubernetes/uui/templates/deployment.yaml @@ -58,7 +58,7 @@ spec: - name: MSB_ADDR value: {{ tpl .Values.msbaddr . }} 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/uui/values.yaml b/kubernetes/uui/values.yaml index 66b277837e..95be04ba7c 100644 --- a/kubernetes/uui/values.yaml +++ b/kubernetes/uui/values.yaml @@ -21,6 +21,8 @@ global: subChartsOnly: enabled: true +flavor: small + # application image repository: nexus3.onap.org:10001 image: onap/usecase-ui:1.1.1 @@ -63,7 +65,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 @@ -74,10 +75,18 @@ resources: {} # ref: http://kubernetes.io/docs/user-guide/compute-resources/ # Minimum memory for development is 2 CPU cores and 4GB memory # Minimum memory for production is 4 CPU cores and 8GB memory -#resources: -# limits: -# cpu: 2 -# memory: 4Gi -# requests: -# cpu: 2 -# memory: 4Gi +resources: + small: + limits: + cpu: 250m + memory: 1Gi + requests: + cpu: 250m + memory: 1Gi + large: + limits: + cpu: 500m + memory: 1Gi + requests: + cpu: 500m + memory: 1Gi |