Use flavors for resources in mariadb-galera deploy 22/73422/2
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Fri, 23 Nov 2018 13:25:57 +0000 (14:25 +0100)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Fri, 23 Nov 2018 14:00:18 +0000 (15:00 +0100)
For Casablanca release, flavors have been set up for choosing the
"right" resource requests and limits.

Although the deployment is using the right way for that, mariadb-galera
charts values.yaml was not. This commit makes values.yaml aligned with
flavors.

Change-Id: If51e8c5ad41dda7fa35c3aaaa58e60752094f133
Issue-ID: OOM-1528
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
kubernetes/common/mariadb-galera/values.yaml

index 2305323..e4c6550 100644 (file)
@@ -117,12 +117,21 @@ externalConfig: {}
   # Minimum memory for development is 2 CPU cores and 4GB memory
   # Minimum memory for production is 4 CPU cores and 8GB memory
 resources:
-  limits:
-    cpu: 2
-    memory: 4Gi
-  requests:
-    cpu: 1
-    memory: 2Gi
+  small:
+    limits:
+      cpu: 2
+      memory: 4Gi
+    requests:
+      cpu: 1
+      memory: 2Gi
+  large:
+    limits:
+      cpu: 2
+      memory: 4Gi
+    requests:
+      cpu: 1
+      memory: 2Gi
+  unlimited: {}
 
 # Name for mariadb-galera cluster - should be unique accross all projects or other clusters
 nameOverride: mariadb-galera