From d68e2883d9d256e29f5471c19b9159ddf9007fe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=98eho=C5=99?= Date: Tue, 28 May 2024 19:01:16 +0200 Subject: [PATCH] feat: tune resources requests --- .../database/cloudnative-pg/cluster/cluster16.yaml | 2 +- .../main/apps/database/dragonfly/cluster/cluster.yaml | 2 +- .../apps/kube-system/descheduler/app/helmrelease.yaml | 4 ---- .../main/apps/kube-system/multus/app/helmrelease.yaml | 8 -------- .../node-feature-discovery/app/helmrelease.yaml | 10 +++------- .../main/apps/network/echo-server/app/helmrelease.yaml | 2 -- .../network/ingress-nginx/external/helmrelease.yaml | 4 ++-- .../network/ingress-nginx/internal/helmrelease.yaml | 4 ++-- .../main/apps/storage/rook-ceph/app/helmrelease.yaml | 2 +- .../apps/storage/rook-ceph/cluster/helmrelease.yaml | 10 +++++----- 10 files changed, 15 insertions(+), 33 deletions(-) diff --git a/kubernetes/main/apps/database/cloudnative-pg/cluster/cluster16.yaml b/kubernetes/main/apps/database/cloudnative-pg/cluster/cluster16.yaml index 04b9d9f8..8461053c 100644 --- a/kubernetes/main/apps/database/cloudnative-pg/cluster/cluster16.yaml +++ b/kubernetes/main/apps/database/cloudnative-pg/cluster/cluster16.yaml @@ -37,7 +37,7 @@ spec: reusePVC: true resources: requests: - cpu: 100m + cpu: 20m limits: memory: 4Gi monitoring: diff --git a/kubernetes/main/apps/database/dragonfly/cluster/cluster.yaml b/kubernetes/main/apps/database/dragonfly/cluster/cluster.yaml index 347a3fb8..3d0d8b33 100644 --- a/kubernetes/main/apps/database/dragonfly/cluster/cluster.yaml +++ b/kubernetes/main/apps/database/dragonfly/cluster/cluster.yaml @@ -24,6 +24,6 @@ spec: key: password resources: requests: - cpu: 100m + cpu: 20m limits: memory: 512Mi diff --git a/kubernetes/main/apps/kube-system/descheduler/app/helmrelease.yaml b/kubernetes/main/apps/kube-system/descheduler/app/helmrelease.yaml index a98612bc..348f9f56 100644 --- a/kubernetes/main/apps/kube-system/descheduler/app/helmrelease.yaml +++ b/kubernetes/main/apps/kube-system/descheduler/app/helmrelease.yaml @@ -56,10 +56,6 @@ spec: - RemovePodsViolatingInterPodAntiAffinity - RemovePodsViolatingNodeAffinity - RemovePodsViolatingNodeTaints - resources: - request: - cpu: 100m - memory: 64Mi affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: diff --git a/kubernetes/main/apps/kube-system/multus/app/helmrelease.yaml b/kubernetes/main/apps/kube-system/multus/app/helmrelease.yaml index 31960b42..0f8c23c8 100644 --- a/kubernetes/main/apps/kube-system/multus/app/helmrelease.yaml +++ b/kubernetes/main/apps/kube-system/multus/app/helmrelease.yaml @@ -79,10 +79,6 @@ spec: env: - name: SKIP_CNI_BINARIES value: "bandwidth,bridge,firewall,flannel,host-device,host-local,ipvlan,loopback,portmap,ptp,sbr,vlan,vrf" # macvlan,tuning - resources: - requests: - cpu: "10m" - memory: "15Mi" securityContext: capabilities: drop: @@ -95,10 +91,6 @@ spec: args: | set -x cp /usr/src/multus-cni/bin/multus-shim /host/opt/cni/bin/multus-shim - resources: - requests: - cpu: "10m" - memory: "15Mi" securityContext: capabilities: drop: diff --git a/kubernetes/main/apps/kube-system/node-feature-discovery/app/helmrelease.yaml b/kubernetes/main/apps/kube-system/node-feature-discovery/app/helmrelease.yaml index d6403652..694a420a 100644 --- a/kubernetes/main/apps/kube-system/node-feature-discovery/app/helmrelease.yaml +++ b/kubernetes/main/apps/kube-system/node-feature-discovery/app/helmrelease.yaml @@ -28,19 +28,15 @@ spec: master: resources: requests: - cpu: 21m - memory: 51Mi + memory: 32Mi limits: - memory: 51Mi + memory: 64Mi worker: config: core: sources: ["pci", "system", "usb"] resources: - requests: - cpu: 5m - memory: 48Mi limits: - memory: 48Mi + memory: 64Mi prometheus: enable: true diff --git a/kubernetes/main/apps/network/echo-server/app/helmrelease.yaml b/kubernetes/main/apps/network/echo-server/app/helmrelease.yaml index 898ffc28..ba8e0ba9 100644 --- a/kubernetes/main/apps/network/echo-server/app/helmrelease.yaml +++ b/kubernetes/main/apps/network/echo-server/app/helmrelease.yaml @@ -52,8 +52,6 @@ spec: readOnlyRootFilesystem: true capabilities: { drop: ["ALL"] } resources: - requests: - cpu: 10m limits: memory: 64Mi defaultPodOptions: diff --git a/kubernetes/main/apps/network/ingress-nginx/external/helmrelease.yaml b/kubernetes/main/apps/network/ingress-nginx/external/helmrelease.yaml index 9ab3686d..578587d8 100644 --- a/kubernetes/main/apps/network/ingress-nginx/external/helmrelease.yaml +++ b/kubernetes/main/apps/network/ingress-nginx/external/helmrelease.yaml @@ -80,8 +80,8 @@ spec: app.kubernetes.io/component: controller resources: requests: - cpu: 100m + cpu: 10m limits: - memory: 500Mi + memory: 512Mi defaultBackend: enabled: false diff --git a/kubernetes/main/apps/network/ingress-nginx/internal/helmrelease.yaml b/kubernetes/main/apps/network/ingress-nginx/internal/helmrelease.yaml index 34c47dd3..1bab7678 100644 --- a/kubernetes/main/apps/network/ingress-nginx/internal/helmrelease.yaml +++ b/kubernetes/main/apps/network/ingress-nginx/internal/helmrelease.yaml @@ -77,8 +77,8 @@ spec: app.kubernetes.io/component: controller resources: requests: - cpu: 100m + cpu: 10m limits: - memory: 500Mi + memory: 512Mi defaultBackend: enabled: false diff --git a/kubernetes/main/apps/storage/rook-ceph/app/helmrelease.yaml b/kubernetes/main/apps/storage/rook-ceph/app/helmrelease.yaml index de94ee6d..6b1dd85f 100644 --- a/kubernetes/main/apps/storage/rook-ceph/app/helmrelease.yaml +++ b/kubernetes/main/apps/storage/rook-ceph/app/helmrelease.yaml @@ -129,5 +129,5 @@ spec: memory: 512Mi requests: memory: 128Mi - cpu: 100m + cpu: 50m diff --git a/kubernetes/main/apps/storage/rook-ceph/cluster/helmrelease.yaml b/kubernetes/main/apps/storage/rook-ceph/cluster/helmrelease.yaml index eba3a53d..1e618900 100644 --- a/kubernetes/main/apps/storage/rook-ceph/cluster/helmrelease.yaml +++ b/kubernetes/main/apps/storage/rook-ceph/cluster/helmrelease.yaml @@ -69,7 +69,7 @@ spec: resources: mgr: requests: - cpu: "100m" + cpu: "50m" memory: "512Mi" limits: memory: "2Gi" @@ -81,7 +81,7 @@ spec: memory: "1Gi" osd: requests: - cpu: "500m" + cpu: "50m" memory: "2Gi" limits: memory: "6Gi" @@ -105,7 +105,7 @@ spec: memory: "1Gi" cleanup: requests: - cpu: "100m" + cpu: "50m" memory: "100Mi" limits: memory: "1Gi" @@ -159,7 +159,7 @@ spec: priorityClassName: system-cluster-critical resources: requests: - cpu: "100m" + cpu: "20m" memory: "1Gi" limits: memory: "3Gi" @@ -203,7 +203,7 @@ spec: port: 80 resources: requests: - cpu: 100m + cpu: 20m memory: 256Mi limits: memory: 2Gi