diff options
author | Mukul <mukul.joshi@amdocs.com> | 2018-09-11 11:42:00 +0000 |
---|---|---|
committer | Mandeep Khinda <Mandeep.Khinda@amdocs.com> | 2018-09-12 14:29:06 +0000 |
commit | 62927a13cd4b1457d1ebfbd838a4cba145aa9c98 (patch) | |
tree | 74e48b8e2a98ac466efdc421953458c091ce5b6b /kubernetes/multicloud/charts/multicloud-windriver | |
parent | 908fc8cb12a093a7b81fc4f8a938fafbdd9356d8 (diff) |
Resource Limits for multicloud
Issue-ID: OOM-1155
Change-Id: Ie727d224eb0ffbd619b46cf66d765b0b0afd454e
Signed-off-by: Mukul <mukul.joshi@amdocs.com>
Diffstat (limited to 'kubernetes/multicloud/charts/multicloud-windriver')
-rw-r--r-- | kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml | 13 | ||||
-rw-r--r-- | kubernetes/multicloud/charts/multicloud-windriver/values.yaml | 36 |
2 files changed, 20 insertions, 29 deletions
diff --git a/kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml b/kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml index 353cb7b2b8..2e89974fd1 100644 --- a/kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml +++ b/kubernetes/multicloud/charts/multicloud-windriver/templates/deployment.yaml @@ -62,6 +62,8 @@ spec: - mountPath: /opt/windriver/titanium_cloud/pub/config/log.yml name: windriver-logconfig subPath: log.yml + resources: +{{ toYaml (pluck .Values.flavor .Values.resources| first) | indent 12 }} image: "{{ include "common.repository" . }}/{{ .Values.image }}" imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} ports: @@ -80,17 +82,6 @@ spec: successThreshold: {{ .Values.liveness.successThreshold }} failureThreshold: {{ .Values.liveness.failureThreshold }} {{ end }} - resources: -{{ toYaml .Values.resources | indent 12 }} - {{- if .Values.nodeSelector }} - nodeSelector: -{{ toYaml .Values.nodeSelector | indent 10 }} - {{- end -}} - {{- if .Values.affinity }} - affinity: -{{ toYaml .Values.affinity | indent 10 }} - {{- end }} - # side car containers - image: "{{ .Values.global.loggingRepository }}/{{ .Values.global.loggingImage }}" imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }} diff --git a/kubernetes/multicloud/charts/multicloud-windriver/values.yaml b/kubernetes/multicloud/charts/multicloud-windriver/values.yaml index d6af600d06..dce2343507 100644 --- a/kubernetes/multicloud/charts/multicloud-windriver/values.yaml +++ b/kubernetes/multicloud/charts/multicloud-windriver/values.yaml @@ -66,21 +66,21 @@ liveness: 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 - # lines, adjust them as necessary, and remove the curly braces after 'resources:'. - # - # Example: - # Configure resource requests and limits - # 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 +# Resource Limit flavor -By Default using small +flavor: small +# Segregation for Different environment (Small and Large) +resources: + small: + limits: + cpu: 1 + memory: 4Gi + requests: + cpu: 10m + memory: 1Gi + large: + limits: + cpu: 2 + memory: 8Gi + requests: + cpu: 20m + memory: 2Gi |