[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/cds/components/cds-blueprints-processor/values.yaml b/kubernetes/cds/components/cds-blueprints-processor/values.yaml
index 3244748..3d931d3 100755
--- a/kubernetes/cds/components/cds-blueprints-processor/values.yaml
+++ b/kubernetes/cds/components/cds-blueprints-processor/values.yaml
@@ -203,18 +203,18 @@
resources:
small:
limits:
- cpu: 1
- memory: 1.8Gi
+ cpu: "1"
+ memory: "1.8Gi"
requests:
- cpu: 0.5
- memory: 1.8Gi
+ cpu: "0.5"
+ memory: "1.8Gi"
large:
limits:
- cpu: 2
- memory: 3.6Gi
+ cpu: "2"
+ memory: "3.6Gi"
requests:
- cpu: 1
- memory: 3.6Gi
+ cpu: "1"
+ memory: "3.6Gi"
unlimited: {}
readinessCheck:
diff --git a/kubernetes/cds/components/cds-command-executor/templates/deployment.yaml b/kubernetes/cds/components/cds-command-executor/templates/deployment.yaml
index 883f7f8..f7a9c9c 100755
--- a/kubernetes/cds/components/cds-command-executor/templates/deployment.yaml
+++ b/kubernetes/cds/components/cds-command-executor/templates/deployment.yaml
@@ -44,6 +44,13 @@
image: {{ include "repositoryGenerator.image.readiness" . }}
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
name: {{ include "common.name" . }}-readiness
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "0.5Gi"
+ requests:
+ cpu: "3m"
+ memory: "0.02Gi"
containers:
- name: {{ include "common.name" . }}
image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
diff --git a/kubernetes/cds/components/cds-command-executor/values.yaml b/kubernetes/cds/components/cds-command-executor/values.yaml
index 70d2f09..2af68e6 100755
--- a/kubernetes/cds/components/cds-command-executor/values.yaml
+++ b/kubernetes/cds/components/cds-command-executor/values.yaml
@@ -81,18 +81,18 @@
resources:
small:
limits:
- cpu: 1
- memory: 0.2Gi
+ cpu: "1"
+ memory: "0.2Gi"
requests:
- cpu: 0.5
- memory: 0.2Gi
+ cpu: "0.5"
+ memory: "0.2Gi"
large:
limits:
- cpu: 2
- memory: 0.4Gi
+ cpu: "2"
+ memory: "0.4Gi"
requests:
- cpu: 1
- memory: 0.4Gi
+ cpu: "1"
+ memory: "0.4Gi"
unlimited: {}
#Pods Service Account
diff --git a/kubernetes/cds/components/cds-py-executor/values.yaml b/kubernetes/cds/components/cds-py-executor/values.yaml
index 148a98d..427abf8 100755
--- a/kubernetes/cds/components/cds-py-executor/values.yaml
+++ b/kubernetes/cds/components/cds-py-executor/values.yaml
@@ -97,18 +97,18 @@
resources:
small:
limits:
- cpu: 1
- memory: 0.2Gi
+ cpu: "1"
+ memory: "0.2Gi"
requests:
- cpu: 0.5
- memory: 0.2Gi
+ cpu: "0.5"
+ memory: "0.2Gi"
large:
limits:
- cpu: 2
- memory: 0.4Gi
+ cpu: "2"
+ memory: "0.4Gi"
requests:
- cpu: 1
- memory: 0.4Gi
+ cpu: "1"
+ memory: "0.4Gi"
unlimited: {}
#Pods Service Account
diff --git a/kubernetes/cds/components/cds-sdc-listener/templates/deployment.yaml b/kubernetes/cds/components/cds-sdc-listener/templates/deployment.yaml
index c0302d1..8688d8b 100644
--- a/kubernetes/cds/components/cds-sdc-listener/templates/deployment.yaml
+++ b/kubernetes/cds/components/cds-sdc-listener/templates/deployment.yaml
@@ -40,6 +40,13 @@
image: {{ include "repositoryGenerator.image.readiness" . }}
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
name: {{ include "common.name" . }}-readiness
+ resources:
+ limits:
+ cpu: "100m"
+ memory: "0.5Gi"
+ requests:
+ cpu: "3m"
+ memory: "0.02Gi"
containers:
- name: {{ include "common.name" . }}
image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
diff --git a/kubernetes/cds/components/cds-sdc-listener/values.yaml b/kubernetes/cds/components/cds-sdc-listener/values.yaml
index 3918825..19de4e2 100644
--- a/kubernetes/cds/components/cds-sdc-listener/values.yaml
+++ b/kubernetes/cds/components/cds-sdc-listener/values.yaml
@@ -97,18 +97,18 @@
resources:
small:
limits:
- cpu: 1
- memory: 0.7Gi
+ cpu: "1"
+ memory: "0.7Gi"
requests:
- cpu: 0.5
- memory: 0.7Gi
+ cpu: "0.5"
+ memory: "0.7Gi"
large:
limits:
- cpu: 2
- memory: 1.4Gi
+ cpu: "2"
+ memory: "1.4Gi"
requests:
- cpu: 1
- memory: 1.4Gi
+ cpu: "1"
+ memory: "1.4Gi"
unlimited: {}
#Pods Service Account
diff --git a/kubernetes/cds/components/cds-ui/values.yaml b/kubernetes/cds/components/cds-ui/values.yaml
index cadf716..dfc20be 100644
--- a/kubernetes/cds/components/cds-ui/values.yaml
+++ b/kubernetes/cds/components/cds-ui/values.yaml
@@ -98,18 +98,18 @@
resources:
small:
limits:
- cpu: 1
- memory: 0.2Gi
+ cpu: "1"
+ memory: "0.2Gi"
requests:
- cpu: 0.5
- memory: 0.2Gi
+ cpu: "0.5"
+ memory: "0.2Gi"
large:
limits:
- cpu: 2
- memory: 0.2Gi
+ cpu: "2"
+ memory: "0.2Gi"
requests:
- cpu: 1
- memory: 0.2Gi
+ cpu: "1"
+ memory: "0.2Gi"
unlimited: {}
#Pods Service Account