From 68ed45ba9efba1959c620d55a1ab3ba6963c5f26 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Sat, 28 Jan 2023 17:24:30 +0100
Subject: [PATCH] fix(rook): Remove rook for now

Rook didn't fly properly and currently causes some issues with cluster usage,
therefore dropping it, should help to reduce load on the cluster.
---
 infrastructure/rook/cluster.yaml       | 91 --------------------------
 infrastructure/rook/kustomization.yaml |  8 ---
 infrastructure/rook/namespace.yaml     | 11 ----
 infrastructure/rook/operator.yaml      | 43 ------------
 infrastructure/rook/repository.yaml    |  8 ---
 5 files changed, 161 deletions(-)
 delete mode 100644 infrastructure/rook/cluster.yaml
 delete mode 100644 infrastructure/rook/kustomization.yaml
 delete mode 100644 infrastructure/rook/namespace.yaml
 delete mode 100644 infrastructure/rook/operator.yaml
 delete mode 100644 infrastructure/rook/repository.yaml

diff --git a/infrastructure/rook/cluster.yaml b/infrastructure/rook/cluster.yaml
deleted file mode 100644
index 36c5408d4..000000000
--- a/infrastructure/rook/cluster.yaml
+++ /dev/null
@@ -1,91 +0,0 @@
-apiVersion: helm.toolkit.fluxcd.io/v2beta1
-kind: HelmRelease
-metadata:
-  name: rook-ceph-cluster
-  namespace: rook-ceph
-spec:
-  releaseName: rook-ceph-cluster
-  chart:
-    spec:
-      chart: rook-ceph-cluster
-      sourceRef:
-        kind: HelmRepository
-        name: rook-release
-        namespace: rook-ceph
-      version: v1.10.8
-  interval: 5m
-  install:
-    crds: CreateReplace
-  upgrade:
-    crds: CreateReplace
-  valuesFrom:
-    - kind: ConfigMap
-      name: rook-ceph-cluster-base-values
-      valuesKey: values.yaml
-    - kind: Secret
-      name: rook-ceph-cluster-override-values
-      valuesKey: values-override.yaml
-      optional: true
----
-apiVersion: v1
-kind: ConfigMap
-metadata:
-  name: rook-ceph-cluster-base-values
-  namespace: rook-ceph
-data:
-  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
diff --git a/infrastructure/rook/kustomization.yaml b/infrastructure/rook/kustomization.yaml
deleted file mode 100644
index 799a6390c..000000000
--- a/infrastructure/rook/kustomization.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-apiVersion: kustomize.config.k8s.io/v1beta1
-kind: Kustomization
-namespace: rook-ceph
-resources:
-  - namespace.yaml
-  - repository.yaml
-  - operator.yaml
-  - cluster.yaml
diff --git a/infrastructure/rook/namespace.yaml b/infrastructure/rook/namespace.yaml
deleted file mode 100644
index 2386bc141..000000000
--- a/infrastructure/rook/namespace.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-apiVersion: v1
-kind: Namespace
-metadata:
-  name: rook-ceph
-  labels:
-    pod-security.kubernetes.io/audit: privileged
-    pod-security.kubernetes.io/enforce: privileged
-    pod-security.kubernetes.io/warn: privileged
-    pod-security.kubernetes.io/audit-version: v1.23
-    pod-security.kubernetes.io/enforce-version: v1.23
-    pod-security.kubernetes.io/warn-version: v1.23
diff --git a/infrastructure/rook/operator.yaml b/infrastructure/rook/operator.yaml
deleted file mode 100644
index 22640c541..000000000
--- a/infrastructure/rook/operator.yaml
+++ /dev/null
@@ -1,43 +0,0 @@
-apiVersion: helm.toolkit.fluxcd.io/v2beta1
-kind: HelmRelease
-metadata:
-  name: rook-ceph
-  namespace: rook-ceph
-spec:
-  releaseName: rook-ceph
-  chart:
-    spec:
-      chart: rook-ceph
-      sourceRef:
-        kind: HelmRepository
-        name: rook-release
-        namespace: rook-ceph
-      version: v1.10.8
-  interval: 5m
-  install:
-    crds: CreateReplace
-  upgrade:
-    crds: CreateReplace
-  valuesFrom:
-    - kind: ConfigMap
-      name: rook-ceph-base-values
-      valuesKey: values.yaml
-    - kind: Secret
-      name: rook-ceph-override
-      valuesKey: values-override.yaml
-      optional: true
----
-apiVersion: v1
-kind: ConfigMap
-metadata:
-  name: rook-ceph-base-values
-  namespace: rook-ceph
-data:
-  values.yaml: |
-    csi:
-      topology:
-        enabled: true
-        domainLabels:
-          - kubernetes.io/hostname
-    monitoring:
-      enabled: true
\ No newline at end of file
diff --git a/infrastructure/rook/repository.yaml b/infrastructure/rook/repository.yaml
deleted file mode 100644
index 2a6d5e5d5..000000000
--- a/infrastructure/rook/repository.yaml
+++ /dev/null
@@ -1,8 +0,0 @@
-apiVersion: source.toolkit.fluxcd.io/v1beta1
-kind: HelmRepository
-metadata:
-  name: rook-release 
-  namespace: rook-ceph
-spec:
-  interval: 30m
-  url: https://charts.rook.io/release
-- 
GitLab