diff options
author | 2018-09-14 20:15:13 +0000 | |
---|---|---|
committer | 2018-09-14 20:15:13 +0000 | |
commit | 95f819a35f8ca316647b4a8341a589985f3c21d8 (patch) | |
tree | 261832ddcb8d66f76694d9ad341c0a69369d4628 /kubernetes/sdnc/charts/dmaap-listener | |
parent | e5c653d6c0a667632a1e1cb0911a703cc834c781 (diff) | |
parent | 72b5f0f909e6949e48c35c49661832ca2a17a1da (diff) |
Merge "Resource Limits for sdnc Issue-ID: OOM-1162"
Diffstat (limited to 'kubernetes/sdnc/charts/dmaap-listener')
-rw-r--r-- | kubernetes/sdnc/charts/dmaap-listener/templates/deployment.yaml | 2 | ||||
-rw-r--r-- | kubernetes/sdnc/charts/dmaap-listener/values.yaml | 27 |
2 files changed, 20 insertions, 9 deletions
diff --git a/kubernetes/sdnc/charts/dmaap-listener/templates/deployment.yaml b/kubernetes/sdnc/charts/dmaap-listener/templates/deployment.yaml index 1a13cc3595..a649a077ed 100644 --- a/kubernetes/sdnc/charts/dmaap-listener/templates/deployment.yaml +++ b/kubernetes/sdnc/charts/dmaap-listener/templates/deployment.yaml @@ -74,7 +74,7 @@ spec: name: properties subPath: lcm.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/dmaap-listener/values.yaml b/kubernetes/sdnc/charts/dmaap-listener/values.yaml index 9ddf590abd..e735090840 100644 --- a/kubernetes/sdnc/charts/dmaap-listener/values.yaml +++ b/kubernetes/sdnc/charts/dmaap-listener/values.yaml @@ -72,12 +72,23 @@ mysql: service: name: sdnc-dbhost internalPort: 3306 +#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 -resources: {} -#resources: -# limits: -# cpu: 2 -# memory: 4Gi -# requests: -# cpu: 2 -# memory: 4Gi |