From 81fc29e4d36cacceb19438747dc9f3307f22ae42 Mon Sep 17 00:00:00 2001 From: auricom <27022259+auricom@users.noreply.github.com> Date: Mon, 4 Jul 2022 22:01:38 +0200 Subject: [PATCH] feat: remove bad rook-ceph rules --- cluster/apps/kustomization.yaml | 1 + cluster/apps/rook-ceph/kustomization.yaml | 13 +++++++++++++ cluster/apps/rook-ceph/modify-rules-patch.yaml | 9 +++++++++ 3 files changed, 23 insertions(+) create mode 100644 cluster/apps/rook-ceph/kustomization.yaml create mode 100644 cluster/apps/rook-ceph/modify-rules-patch.yaml diff --git a/cluster/apps/kustomization.yaml b/cluster/apps/kustomization.yaml index 1c4948002..e20e75f28 100644 --- a/cluster/apps/kustomization.yaml +++ b/cluster/apps/kustomization.yaml @@ -8,4 +8,5 @@ resources: - media - monitoring - networking + - rook-ceph #- secret-reflector diff --git a/cluster/apps/rook-ceph/kustomization.yaml b/cluster/apps/rook-ceph/kustomization.yaml new file mode 100644 index 000000000..8bd032910 --- /dev/null +++ b/cluster/apps/rook-ceph/kustomization.yaml @@ -0,0 +1,13 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - https://raw.githubusercontent.com/rook/rook/v1.9.6/deploy/examples/monitoring/rbac.yaml + - https://raw.githubusercontent.com/rook/rook/v1.9.6/deploy/examples/monitoring/localrules.yaml +patches: + - path: modify-rules-patch.yaml + target: + group: monitoring.coreos.com + version: v1 + kind: PrometheusRule + name: prometheus-ceph-rules + namespace: rook-ceph diff --git a/cluster/apps/rook-ceph/modify-rules-patch.yaml b/cluster/apps/rook-ceph/modify-rules-patch.yaml new file mode 100644 index 000000000..73c09a70c --- /dev/null +++ b/cluster/apps/rook-ceph/modify-rules-patch.yaml @@ -0,0 +1,9 @@ +# remove CephNodeInconsistentMTU +- op: remove + path: /spec/groups/6/rules/4 +# remove PrometheusServer +- op: remove + path: /spec/groups/10/rules/0 +# remove CephNodeNetworkPacketDrops +- op: remove + path: /spec/groups/6/rules/1