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