[COMMON] Harmonize resource settings, Part 2

Some settings are still wrongly interpreted (e.g. 0.02Gi)
Therefor they are changed to non-floating numbers (e.g. 20Mi)

Issue-ID: OOM-3273

Change-Id: Icc88dead1ac5b1df8629d6adcc438a739e20522e
Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de>
diff --git a/kubernetes/common/cassandra/templates/backup/cronjob.yaml b/kubernetes/common/cassandra/templates/backup/cronjob.yaml
index 8773cd3..402d168 100644
--- a/kubernetes/common/cassandra/templates/backup/cronjob.yaml
+++ b/kubernetes/common/cassandra/templates/backup/cronjob.yaml
@@ -53,20 +53,20 @@
               resources:
                 limits:
                   cpu: "100m"
-                  memory: "0.5Gi"
+                  memory: "500Mi"
                 requests:
                   cpu: "3m"
-                  memory: "0.02Gi"
+                  memory: "20Mi"
             - name: "cassandra-backup-init"
               image: {{ include "repositoryGenerator.image.readiness" . }}
               imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
               resources:
                 limits:
                   cpu: "100m"
-                  memory: "0.5Gi"
+                  memory: "500Mi"
                 requests:
                   cpu: "3m"
-                  memory: "0.02Gi"
+                  memory: "20Mi"
               command:
               - /bin/bash
               - -c
diff --git a/kubernetes/common/common/templates/_log.tpl b/kubernetes/common/common/templates/_log.tpl
index ca296c5..993c482 100644
--- a/kubernetes/common/common/templates/_log.tpl
+++ b/kubernetes/common/common/templates/_log.tpl
@@ -30,10 +30,10 @@
   resources:
     requests:
       cpu: "10m"
-      memory: "0.005Gi"
+      memory: "5Mi"
     limits:
       cpu: "100m"
-      memory: "0.02Gi"
+      memory: "20Mi"
 {{- end -}}
 {{- end -}}
 
diff --git a/kubernetes/common/common/templates/_mariadb.tpl b/kubernetes/common/common/templates/_mariadb.tpl
index 427e0cb..e21f0f6 100644
--- a/kubernetes/common/common/templates/_mariadb.tpl
+++ b/kubernetes/common/common/templates/_mariadb.tpl
@@ -228,10 +228,10 @@
   resources:
     requests:
       cpu: "100m"
-      memory: "0.1Gi"
+      memory: "100Mi"
     limits:
       cpu: "300m"
-      memory: "0.5Gi"
+      memory: "500Mi"
 {{- end -}}
 
 {{/*
diff --git a/kubernetes/common/dgbuilder/templates/deployment.yaml b/kubernetes/common/dgbuilder/templates/deployment.yaml
index 8182103..5d3038b 100644
--- a/kubernetes/common/dgbuilder/templates/deployment.yaml
+++ b/kubernetes/common/dgbuilder/templates/deployment.yaml
@@ -75,10 +75,10 @@
         resources:
           limits:
             cpu: "100m"
-            memory: "0.5Gi"
+            memory: "500Mi"
           requests:
             cpu: "3m"
-            memory: "0.02Gi"
+            memory: "20Mi"
       containers:
         - name: {{ include "common.name" . }}
           image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
diff --git a/kubernetes/common/elasticsearch/components/curator/values.yaml b/kubernetes/common/elasticsearch/components/curator/values.yaml
index 0a5080e..00f113b 100644
--- a/kubernetes/common/elasticsearch/components/curator/values.yaml
+++ b/kubernetes/common/elasticsearch/components/curator/values.yaml
@@ -124,10 +124,10 @@
   # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
   limits: {}
   #  cpu: "100m"
-  #  memory: "0.1Gi"
+  #  memory: "100Mi"
   requests: {}
   #  cpu: "100m"
-  #  memory: "0.1Gi"
+  #  memory: "100Mi"
 priorityClassName: ""
 # extraVolumes and extraVolumeMounts allows you to mount other volumes
 # Example Use Case: mount ssl certificates when elasticsearch has tls enabled
diff --git a/kubernetes/common/elasticsearch/components/data/values.yaml b/kubernetes/common/elasticsearch/components/data/values.yaml
index a0dad56..3f9992a 100644
--- a/kubernetes/common/elasticsearch/components/data/values.yaml
+++ b/kubernetes/common/elasticsearch/components/data/values.yaml
@@ -106,7 +106,7 @@
   ## resources, such as Minikube.
   limits: {}
   #   cpu: "100m"
-  #   memory: "0.1Gi"
+  #   memory: "100Mi"
   requests:
     cpu: "25m"
     memory: "1.1Gi"
diff --git a/kubernetes/common/elasticsearch/components/master/values.yaml b/kubernetes/common/elasticsearch/components/master/values.yaml
index f4ac74e..a3a219e 100644
--- a/kubernetes/common/elasticsearch/components/master/values.yaml
+++ b/kubernetes/common/elasticsearch/components/master/values.yaml
@@ -111,10 +111,10 @@
     cpu: "250m"
     memory: "1.5Gi"
   #   cpu: "100m"
-  #   memory: "0.1Gi"
+  #   memory: "100Mi"
   requests:
     cpu: "5m"
-    memory: "0.3Gi"
+    memory: "300Mi"
 ## Elasticsearch master-eligible container's liveness and readiness probes
 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
 ##
diff --git a/kubernetes/common/elasticsearch/values.yaml b/kubernetes/common/elasticsearch/values.yaml
index e1c8f72..7851f28 100644
--- a/kubernetes/common/elasticsearch/values.yaml
+++ b/kubernetes/common/elasticsearch/values.yaml
@@ -95,10 +95,10 @@
   ## resources, such as Minikube.
   limits: {}
   #   cpu: "100m"
-  #   memory: "0.1Gi"
+  #   memory: "100Mi"
   requests:
     cpu: "25m"
-    memory: "0.2Gi"
+    memory: "200Mi"
 ## Elasticsearch coordinating-only container's liveness and readiness probes
 ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
 ##
diff --git a/kubernetes/common/etcd-init/templates/job.yaml b/kubernetes/common/etcd-init/templates/job.yaml
index 64c8b44..f1f1b0e 100644
--- a/kubernetes/common/etcd-init/templates/job.yaml
+++ b/kubernetes/common/etcd-init/templates/job.yaml
@@ -50,10 +50,10 @@
         resources:
           limits:
             cpu: "100m"
-            memory: "0.5Gi"
+            memory: "500Mi"
           requests:
             cpu: "3m"
-            memory: "0.02Gi"
+            memory: "20Mi"
       containers:
       - name: {{ include "common.name" . }}
         image: {{ include "repositoryGenerator.dockerHubRepository" . }}/{{ .Values.image }}
diff --git a/kubernetes/common/etcd-init/values.yaml b/kubernetes/common/etcd-init/values.yaml
index c9eac92..33e34fd 100644
--- a/kubernetes/common/etcd-init/values.yaml
+++ b/kubernetes/common/etcd-init/values.yaml
@@ -60,17 +60,17 @@
   small:
     limits:
       cpu: "100m"
-      memory: "0.5Gi"
+      memory: "500Mi"
     requests:
       cpu: "10m"
-      memory: "0.01Gi"
+      memory: "10Mi"
   large:
     limits:
       cpu: "200m"
-      memory: "0.5Gi"
+      memory: "500Mi"
     requests:
       cpu: "20m"
-      memory: "0.02Gi"
+      memory: "20Mi"
   unlimited: {}
 
 #Pods Service Account
diff --git a/kubernetes/common/mariadb-galera/values.yaml b/kubernetes/common/mariadb-galera/values.yaml
index 4a99076..29d643e 100644
--- a/kubernetes/common/mariadb-galera/values.yaml
+++ b/kubernetes/common/mariadb-galera/values.yaml
@@ -669,10 +669,10 @@
     # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
     limits:
       cpu: "0.5"
-      memory: "0.2Gi"
+      memory: "200Mi"
     requests:
       cpu: "0.5"
-      memory: "0.2Gi"
+      memory: "200Mi"
   ## MariaDB Galera metrics container's liveness and readiness probes
   ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
   ##
diff --git a/kubernetes/common/mariadb-init/values.yaml b/kubernetes/common/mariadb-init/values.yaml
index e0ba282..5c181dd 100644
--- a/kubernetes/common/mariadb-init/values.yaml
+++ b/kubernetes/common/mariadb-init/values.yaml
@@ -126,17 +126,17 @@
   small:
     limits:
       cpu: "100m"
-      memory: "0.5Gi"
+      memory: "500Mi"
     requests:
       cpu: "10m"
-      memory: "0.01Gi"
+      memory: "10Mi"
   large:
     limits:
       cpu: "200m"
-      memory: "0.5Gi"
+      memory: "500Mi"
     requests:
       cpu: "20m"
-      memory: "0.02Gi"
+      memory: "20Mi"
   unlimited: {}
 
 #Pods Service Account
diff --git a/kubernetes/common/network-name-gen/templates/deployment.yaml b/kubernetes/common/network-name-gen/templates/deployment.yaml
index 010ec0f..4d05ae3 100644
--- a/kubernetes/common/network-name-gen/templates/deployment.yaml
+++ b/kubernetes/common/network-name-gen/templates/deployment.yaml
@@ -46,10 +46,10 @@
         resources:
           limits:
             cpu: "100m"
-            memory: "0.5Gi"
+            memory: "500Mi"
           requests:
             cpu: "3m"
-            memory: "0.02Gi"
+            memory: "20Mi"
       containers:
       - name: {{ include "common.name" . }}
         command:
diff --git a/kubernetes/common/postgres-init/values.yaml b/kubernetes/common/postgres-init/values.yaml
index 7e70019..d2eb090 100644
--- a/kubernetes/common/postgres-init/values.yaml
+++ b/kubernetes/common/postgres-init/values.yaml
@@ -77,10 +77,10 @@
   small:
     limits:
       cpu: "100m"
-      memory: "0.3Gi"
+      memory: "300Mi"
     requests:
       cpu: "10m"
-      memory: "0.09Gi"
+      memory: "90Mi"
   large:
     limits:
       cpu: "2"
diff --git a/kubernetes/common/postgres/values.yaml b/kubernetes/common/postgres/values.yaml
index 5671f01..c0cdfef 100644
--- a/kubernetes/common/postgres/values.yaml
+++ b/kubernetes/common/postgres/values.yaml
@@ -161,10 +161,10 @@
   small:
     limits:
       cpu: "100m"
-      memory: "0.3Gi"
+      memory: "300Mi"
     requests:
       cpu: "10m"
-      memory: "0.09Gi"
+      memory: "90Mi"
   large:
     limits:
       cpu: "2"
@@ -201,10 +201,10 @@
     # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
     limits:
       cpu: "0.5"
-      memory: "0.2Gi"
+      memory: "200Mi"
     requests:
       cpu: "0.5"
-      memory: "0.2Gi"
+      memory: "200Mi"
   ## Postgres metrics container's liveness and readiness probes
   ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
   ##
diff --git a/kubernetes/common/readinessCheck/values.yaml b/kubernetes/common/readinessCheck/values.yaml
index 2fdb613..239743e 100644
--- a/kubernetes/common/readinessCheck/values.yaml
+++ b/kubernetes/common/readinessCheck/values.yaml
@@ -20,7 +20,7 @@
 
 limits:
   cpu: "100m"
-  memory: "0.5Gi"
+  memory: "500Mi"
 requests:
   cpu: "3m"
-  memory: "0.02Gi"
+  memory: "20Mi"
diff --git a/kubernetes/common/timescaledb/values.yaml b/kubernetes/common/timescaledb/values.yaml
index b4070bb..2643f55 100644
--- a/kubernetes/common/timescaledb/values.yaml
+++ b/kubernetes/common/timescaledb/values.yaml
@@ -64,10 +64,10 @@
   small:
     limits:
       cpu: "100m"
-      memory: "0.3Gi"
+      memory: "300Mi"
     requests:
       cpu: "10m"
-      memory: "0.09Gi"
+      memory: "90Mi"
   large:
     limits:
       cpu: "2"