[COMMON] Harmonize resource settings
Update all resource settings to the kubernetes recommended
normalized form. Fix ReadinessCheck resource limits.
Issue-ID: OOM-3273
Change-Id: Ie10903b801e4dc1689bcec092162d711a431a7a6
Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de>
diff --git a/kubernetes/common/mariadb-init/templates/job.yaml b/kubernetes/common/mariadb-init/templates/job.yaml
index f41f523..288ea8e 100644
--- a/kubernetes/common/mariadb-init/templates/job.yaml
+++ b/kubernetes/common/mariadb-init/templates/job.yaml
@@ -51,6 +51,13 @@
fieldPath: metadata.namespace
image: {{ include "repositoryGenerator.image.readiness" . }}
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "0.5Gi"
+ requests:
+ cpu: "3m"
+ memory: "0.02Gi"
containers:
- name: {{ include "common.name" . }}
image: {{ include "repositoryGenerator.image.mariadb" . }}
diff --git a/kubernetes/common/mariadb-init/values.yaml b/kubernetes/common/mariadb-init/values.yaml
index fb2e202..9a4b4b3 100644
--- a/kubernetes/common/mariadb-init/values.yaml
+++ b/kubernetes/common/mariadb-init/values.yaml
@@ -125,18 +125,18 @@
resources:
small:
limits:
- cpu: 100m
- memory: 500Mi
+ cpu: "100m"
+ memory: "0.5Gi"
requests:
- cpu: 10m
- memory: 10Mi
+ cpu: "10m"
+ memory: "0.01Gi"
large:
limits:
- cpu: 200m
- memory: 500Mi
+ cpu: "200m"
+ memory: "0.5Gi"
requests:
- cpu: 20m
- memory: 20Mi
+ cpu: "20m"
+ memory: "0.02Gi"
unlimited: {}
#Pods Service Account