diff options
author | Prateekinlinux <prateek.khosla@amdocs.com> | 2018-09-20 12:07:08 +0000 |
---|---|---|
committer | vaibhav_16dec <vaibhav.chopra@amdocs.com> | 2018-09-21 02:36:43 +0000 |
commit | b84ba5e268d886b6e0185be2df61654cab2cf9f8 (patch) | |
tree | 8494e5f619184addc7a53d0574c3311265827750 /kubernetes/oof/charts/oof-has/charts/oof-has-solver | |
parent | 6127806a519501fcfd6446a5670f817d0dd77b9e (diff) |
Resource Limits for oof
Issue-ID: OOM-1157
Change-Id: I2f2733834f71f4edeb87f55cfd8461be10fd8cb9
Signed-off-by: Prateekinlinux <prateek.khosla@amdocs.com>
Diffstat (limited to 'kubernetes/oof/charts/oof-has/charts/oof-has-solver')
-rwxr-xr-x | kubernetes/oof/charts/oof-has/charts/oof-has-solver/templates/deployment.yaml | 2 | ||||
-rwxr-xr-x | kubernetes/oof/charts/oof-has/charts/oof-has-solver/values.yaml | 19 |
2 files changed, 19 insertions, 2 deletions
diff --git a/kubernetes/oof/charts/oof-has/charts/oof-has-solver/templates/deployment.yaml b/kubernetes/oof/charts/oof-has/charts/oof-has-solver/templates/deployment.yaml index abd2f0a7aa..ad1e1c57b5 100755 --- a/kubernetes/oof/charts/oof-has/charts/oof-has-solver/templates/deployment.yaml +++ b/kubernetes/oof/charts/oof-has/charts/oof-has-solver/templates/deployment.yaml @@ -88,7 +88,7 @@ spec: name: {{ .Values.global.commonConfigPrefix }}-config subPath: healthy.sh 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/oof/charts/oof-has/charts/oof-has-solver/values.yaml b/kubernetes/oof/charts/oof-has/charts/oof-has-solver/values.yaml index 57c56d5e44..659128d851 100755 --- a/kubernetes/oof/charts/oof-has/charts/oof-has-solver/values.yaml +++ b/kubernetes/oof/charts/oof-has/charts/oof-has-solver/values.yaml @@ -17,6 +17,24 @@ ingress: replicaCount: 1 nodeSelector: {} affinity: {} +# Resource Limit flavor -By Default using small +flavor: small +# Segregation for Different environment (Small and Large) +resources: + small: + limits: + memory: 4Gi + cpu: 2000m + requests: + memory: 1Gi + cpu: 500m + large: + limits: + memory: 8Gi + cpu: 4000m + requests: + memory: 2Gi + cpu: 1000m # probe configuration parameters liveness: initialDelaySeconds: 10 @@ -27,4 +45,3 @@ liveness: readiness: initialDelaySeconds: 10 periodSeconds: 10 -resources: {} |