aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/cds
diff options
context:
space:
mode:
authorAndreas Geissler <andreas-geissler@telekom.de>2024-02-27 08:55:23 +0100
committerAndreas Geissler <andreas-geissler@telekom.de>2024-02-28 13:36:38 +0000
commit4753743f0743a6b22f69e718c3cdb4ba8843cea6 (patch)
treeb94e42485a252d3ed348faa13ac4a009ad17c10b /kubernetes/cds
parentee7e3ada3228e4c80b622aa588d48ac34789cedd (diff)
[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>
Diffstat (limited to 'kubernetes/cds')
-rwxr-xr-xkubernetes/cds/components/cds-blueprints-processor/values.yaml16
-rwxr-xr-xkubernetes/cds/components/cds-command-executor/templates/deployment.yaml7
-rwxr-xr-xkubernetes/cds/components/cds-command-executor/values.yaml16
-rwxr-xr-xkubernetes/cds/components/cds-py-executor/values.yaml16
-rw-r--r--kubernetes/cds/components/cds-sdc-listener/templates/deployment.yaml7
-rw-r--r--kubernetes/cds/components/cds-sdc-listener/values.yaml16
-rw-r--r--kubernetes/cds/components/cds-ui/values.yaml16
-rw-r--r--kubernetes/cds/values.yaml16
8 files changed, 62 insertions, 48 deletions
diff --git a/kubernetes/cds/components/cds-blueprints-processor/values.yaml b/kubernetes/cds/components/cds-blueprints-processor/values.yaml
index 3244748176..3d931d3d65 100755
--- a/kubernetes/cds/components/cds-blueprints-processor/values.yaml
+++ b/kubernetes/cds/components/cds-blueprints-processor/values.yaml
@@ -203,18 +203,18 @@ flavor: small
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 883f7f8846..f7a9c9ca1d 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 @@ spec:
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 70d2f09d43..2af68e60a4 100755
--- a/kubernetes/cds/components/cds-command-executor/values.yaml
+++ b/kubernetes/cds/components/cds-command-executor/values.yaml
@@ -81,18 +81,18 @@ ingress:
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 148a98dddb..427abf8ee0 100755
--- a/kubernetes/cds/components/cds-py-executor/values.yaml
+++ b/kubernetes/cds/components/cds-py-executor/values.yaml
@@ -97,18 +97,18 @@ flavor: small
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 c0302d11d3..8688d8b4c0 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 @@ spec:
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 3918825e5f..19de4e2454 100644
--- a/kubernetes/cds/components/cds-sdc-listener/values.yaml
+++ b/kubernetes/cds/components/cds-sdc-listener/values.yaml
@@ -97,18 +97,18 @@ flavor: small
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 cadf716b71..dfc20be7a2 100644
--- a/kubernetes/cds/components/cds-ui/values.yaml
+++ b/kubernetes/cds/components/cds-ui/values.yaml
@@ -98,18 +98,18 @@ flavor: small
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
diff --git a/kubernetes/cds/values.yaml b/kubernetes/cds/values.yaml
index ae3137c4dc..ced4f1d930 100644
--- a/kubernetes/cds/values.yaml
+++ b/kubernetes/cds/values.yaml
@@ -128,16 +128,16 @@ flavor: small
resources:
small:
limits:
- cpu: 2
- memory: 4Gi
+ cpu: "2"
+ memory: "4Gi"
requests:
- cpu: 1
- memory: 2Gi
+ cpu: "1"
+ memory: "2Gi"
large:
limits:
- cpu: 4
- memory: 8Gi
+ cpu: "4"
+ memory: "8Gi"
requests:
- cpu: 2
- memory: 4Gi
+ cpu: "2"
+ memory: "4Gi"
unlimited: {}