diff options
author | vaibhav16dec <vaibhav.chopra@amdocs.com> | 2018-08-13 06:10:27 +0000 |
---|---|---|
committer | vaibhav_16dec <vaibhav.chopra@amdocs.com> | 2018-09-07 07:58:18 +0000 |
commit | 0da8829497597e0472c3ce08af3ea59d65a60f5b (patch) | |
tree | f786c57277525cb0884b026f817f6eddecfe6191 /kubernetes/so/charts/so-bpmn-infra | |
parent | 222709edc107d5317672b8bed2296c38bf0c8570 (diff) |
Flavors defintion in resource limit
Issue-ID: OOM-1322
Change-Id: I5248ae206da6b5d65b0830f454813e6e14ec7284
Signed-off-by: vaibhav16dec <vaibhav.chopra@amdocs.com>
Diffstat (limited to 'kubernetes/so/charts/so-bpmn-infra')
-rwxr-xr-x | kubernetes/so/charts/so-bpmn-infra/templates/deployment.yaml | 9 | ||||
-rwxr-xr-x | kubernetes/so/charts/so-bpmn-infra/values.yaml | 11 |
2 files changed, 13 insertions, 7 deletions
diff --git a/kubernetes/so/charts/so-bpmn-infra/templates/deployment.yaml b/kubernetes/so/charts/so-bpmn-infra/templates/deployment.yaml index d235545aa3..a69c189c5b 100755 --- a/kubernetes/so/charts/so-bpmn-infra/templates/deployment.yaml +++ b/kubernetes/so/charts/so-bpmn-infra/templates/deployment.yaml @@ -47,12 +47,7 @@ spec: - name: {{ include "common.name" . }} image: {{ include "common.repository" . }}/{{ .Values.image }} resources: - requests: - memory: {{ index .Values.resources.requests.memory}} - cpu: {{ index .Values.resources.requests.cpu}} - limits: - memory: {{ index .Values.resources.limits.memory}} - cpu: {{ index .Values.resources.limits.cpu}} +{{ toYaml (pluck .Values.flavor .Values.resources| first) | indent 12 }} env: - name: DB_HOST valueFrom: @@ -141,4 +136,4 @@ spec: configMap: name: {{ include "common.fullname" . }}-app-configmap imagePullSecrets: - - name: "{{ include "common.namespace" . }}-docker-registry-key"
\ No newline at end of file + - name: "{{ include "common.namespace" . }}-docker-registry-key" diff --git a/kubernetes/so/charts/so-bpmn-infra/values.yaml b/kubernetes/so/charts/so-bpmn-infra/values.yaml index 82fb5a67ff..b5fbef048d 100755 --- a/kubernetes/so/charts/so-bpmn-infra/values.yaml +++ b/kubernetes/so/charts/so-bpmn-infra/values.yaml @@ -28,13 +28,24 @@ updateStrategy: type: RollingUpdate maxUnavailable: 1 maxSurge: 1 +# 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 livenessProbe: path: /manage/health scheme: HTTP |