diff options
author | 2018-09-13 02:45:22 +0000 | |
---|---|---|
committer | 2018-09-13 02:46:50 +0000 | |
commit | 72b5f0f909e6949e48c35c49661832ca2a17a1da (patch) | |
tree | 99660ef94dd9761f6bbda7085b40974529991432 /kubernetes/sdnc/charts/ueb-listener | |
parent | 62927a13cd4b1457d1ebfbd838a4cba145aa9c98 (diff) |
Resource Limits for sdnc
Issue-ID: OOM-1162
Change-Id: Ifb06ba4377152148ab817ec48e8cdd62bbff7f5d
Signed-off-by: toshrajbhardwaj <toshrajbhardwaj@gmail.com>
Diffstat (limited to 'kubernetes/sdnc/charts/ueb-listener')
-rw-r--r-- | kubernetes/sdnc/charts/ueb-listener/templates/deployment.yaml | 2 | ||||
-rw-r--r-- | kubernetes/sdnc/charts/ueb-listener/values.yaml | 26 |
2 files changed, 19 insertions, 9 deletions
diff --git a/kubernetes/sdnc/charts/ueb-listener/templates/deployment.yaml b/kubernetes/sdnc/charts/ueb-listener/templates/deployment.yaml index 5aa1a31116..2258d4ab94 100644 --- a/kubernetes/sdnc/charts/ueb-listener/templates/deployment.yaml +++ b/kubernetes/sdnc/charts/ueb-listener/templates/deployment.yaml @@ -73,7 +73,7 @@ spec: name: properties subPath: ueb-listener.properties 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/sdnc/charts/ueb-listener/values.yaml b/kubernetes/sdnc/charts/ueb-listener/values.yaml index de9bd27291..c6bbecaba9 100644 --- a/kubernetes/sdnc/charts/ueb-listener/values.yaml +++ b/kubernetes/sdnc/charts/ueb-listener/values.yaml @@ -74,11 +74,21 @@ mysql: ingress: enabled: false -resources: {} -#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: 2 + memory: 4Gi + requests: + cpu: 2 + memory: 4Gi + large: + limits: + cpu: 4 + memory: 8Gi + requests: + cpu: 4 + memory: 8Gi |