From ef66207ede2ca3c8680c87ffc2a189cfb6429cd0 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Sat, 21 Jan 2023 01:19:18 +0100
Subject: [PATCH] fix(rook): Reduce resource requests

This patch reduces the default resource requests, helping to improve the
resilience in case a single node goes down. This way the remaining nodes
aren't overwhelmed by resource requests for CPU.
---
 infrastructure/rook/cluster.yaml | 57 +++++++++++++++++++++++++++++++-
 1 file changed, 56 insertions(+), 1 deletion(-)

diff --git a/infrastructure/rook/cluster.yaml b/infrastructure/rook/cluster.yaml
index 6636cea21..36c5408d4 100644
--- a/infrastructure/rook/cluster.yaml
+++ b/infrastructure/rook/cluster.yaml
@@ -33,4 +33,59 @@ metadata:
   name: rook-ceph-cluster-base-values
   namespace: rook-ceph
 data:
-  values.yaml: |
\ No newline at end of file
+  values.yaml: |
+    cephClusterSpec:
+      resources:
+        mgr:
+          limits:
+            cpu: "1000m"
+            memory: "1Gi"
+          requests:
+            cpu: "100m"
+            memory: "512Mi"
+        mon:
+          limits:
+            cpu: "2000m"
+            memory: "2Gi"
+          requests:
+            cpu: "500m"
+            memory: "1Gi"
+        osd:
+          limits:
+            cpu: "2000m"
+            memory: "4Gi"
+          requests:
+            cpu: "500m"
+            memory: "4Gi"
+        prepareosd:
+          requests:
+            cpu: "100m"
+            memory: "50Mi"
+        mgr-sidecar:
+          limits:
+            cpu: "500m"
+            memory: "100Mi"
+          requests:
+            cpu: "100m"
+            memory: "40Mi"
+        crashcollector:
+          limits:
+            cpu: "500m"
+            memory: "60Mi"
+          requests:
+            cpu: "100m"
+            memory: "60Mi"
+        logcollector:
+          limits:
+            cpu: "500m"
+            memory: "1Gi"
+          requests:
+            cpu: "100m"
+            memory: "100Mi"
+        cleanup:
+          limits:
+            cpu: "500m"
+            memory: "1Gi"
+          requests:
+            cpu: "100m"
+            memory: "100Mi"
\ No newline at end of file
-- 
GitLab