diff options
author | Mandeep Khinda <Mandeep.Khinda@amdocs.com> | 2018-09-19 14:42:38 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-09-19 14:42:38 +0000 |
commit | 74c1775a7f2cecd9b07c6ce4e9fb3d9e698aa600 (patch) | |
tree | c98df9d5a7661f7ac0f24d2e96f7f9e7ea156642 /kubernetes/vid/charts/vid-mariadb-galera | |
parent | 0e8836a0ba8bc0327a2513e8572c0ea351404576 (diff) | |
parent | afb925dceb213156e2cd7909815cef3332b041ed (diff) |
Merge "Resource Limit for VID"
Diffstat (limited to 'kubernetes/vid/charts/vid-mariadb-galera')
-rw-r--r-- | kubernetes/vid/charts/vid-mariadb-galera/templates/statefulset.yaml | 2 | ||||
-rw-r--r-- | kubernetes/vid/charts/vid-mariadb-galera/values.yaml | 35 |
2 files changed, 18 insertions, 19 deletions
diff --git a/kubernetes/vid/charts/vid-mariadb-galera/templates/statefulset.yaml b/kubernetes/vid/charts/vid-mariadb-galera/templates/statefulset.yaml index 816d473257..8ddcb4a69d 100644 --- a/kubernetes/vid/charts/vid-mariadb-galera/templates/statefulset.yaml +++ b/kubernetes/vid/charts/vid-mariadb-galera/templates/statefulset.yaml @@ -97,7 +97,7 @@ spec: timeoutSeconds: {{ .Values.liveness.timeoutSeconds }} {{- end }} resources: -{{ toYaml .Values.resources | indent 12 }} +{{ toYaml (pluck .Values.flavor .Values.resources| first) | indent 12 }} volumeMounts: {{- if .Values.externalConfig }} - mountPath: /etc/config diff --git a/kubernetes/vid/charts/vid-mariadb-galera/values.yaml b/kubernetes/vid/charts/vid-mariadb-galera/values.yaml index e9464b69ee..22b4397f90 100644 --- a/kubernetes/vid/charts/vid-mariadb-galera/values.yaml +++ b/kubernetes/vid/charts/vid-mariadb-galera/values.yaml @@ -106,25 +106,24 @@ ingress: #externalConfig: {} externalConfig: |- lower_case_table_names = 1 -#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 +# Resource Limit flavor -By Default using small +flavor: small +# Segregation for Different environment (Small and Large) resources: - limits: - cpu: 2 - memory: 4Gi - requests: - cpu: 2 - memory: 4Gi - + small: + limits: + cpu: 10m + memory: 1Gi + requests: + cpu: 10m + memory: 1Gi + large: + limits: + cpu: 20m + memory: 2Gi + requests: + cpu: 20m + memory: 2Gi # Name for mariadb-galera cluster - should be unique accross all projects or other clusters nameOverride: vid-mariadb-galera |