From 5318ec8b07a0c284edfd3ef4505bf370b86e7882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=98eho=C5=99?= Date: Fri, 17 May 2024 18:59:55 +0200 Subject: [PATCH] add cloudnative-pg --- .../kube-system/descheduler/app/helmrelease.yaml | 16 +++++++++++++++- .../storage/rook-ceph/cluster/helmrelease.yaml | 14 +++++++------- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/kubernetes/main/apps/kube-system/descheduler/app/helmrelease.yaml b/kubernetes/main/apps/kube-system/descheduler/app/helmrelease.yaml index f57b3659..2c0d99cf 100644 --- a/kubernetes/main/apps/kube-system/descheduler/app/helmrelease.yaml +++ b/kubernetes/main/apps/kube-system/descheduler/app/helmrelease.yaml @@ -23,7 +23,7 @@ spec: strategy: rollback retries: 3 values: - replicas: 3 + replicas: 2 kind: Deployment deschedulerPolicyAPIVersion: descheduler/v1alpha2 deschedulerPolicy: @@ -56,6 +56,20 @@ spec: - RemovePodsViolatingInterPodAntiAffinity - RemovePodsViolatingNodeAffinity - RemovePodsViolatingNodeTaints + resources: + request: + cpu: 100m + memory: 64Mi + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: app.kubernetes.io/name + operator: In + values: + - descheduler + topologyKey: "kubernetes.io/hostname" service: enabled: true serviceMonitor: diff --git a/kubernetes/main/apps/storage/rook-ceph/cluster/helmrelease.yaml b/kubernetes/main/apps/storage/rook-ceph/cluster/helmrelease.yaml index 97d49b8d..eba3a53d 100644 --- a/kubernetes/main/apps/storage/rook-ceph/cluster/helmrelease.yaml +++ b/kubernetes/main/apps/storage/rook-ceph/cluster/helmrelease.yaml @@ -69,25 +69,25 @@ spec: resources: mgr: requests: - cpu: "125m" + cpu: "100m" memory: "512Mi" limits: memory: "2Gi" mon: requests: - cpu: "49m" + cpu: "50m" memory: "512Mi" limits: memory: "1Gi" osd: requests: - cpu: "442m" + cpu: "500m" memory: "2Gi" limits: memory: "6Gi" mgr-sidecar: requests: - cpu: "49m" + cpu: "50m" memory: "128Mi" limits: memory: "256Mi" @@ -99,13 +99,13 @@ spec: memory: "64Mi" logcollector: requests: - cpu: "100m" + cpu: "50m" memory: "100Mi" limits: memory: "1Gi" cleanup: requests: - cpu: "250m" + cpu: "100m" memory: "100Mi" limits: memory: "1Gi" @@ -159,7 +159,7 @@ spec: priorityClassName: system-cluster-critical resources: requests: - cpu: "35m" + cpu: "100m" memory: "1Gi" limits: memory: "3Gi"