From d7abd6224eebe7b7abfaa9367ff5dffdf3b95b47 Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Mon, 4 Nov 2024 10:30:54 -0700 Subject: [PATCH] Add minio operator to infra and obs cluster The NooBaa operator is failing to provide stable object storage for logs and metrics. We will migrate logs and ACM metrics storage to MinIO. This requires MinIO to be installed on the infra and obs clusters. --- .../core/namespaces/minio-operator/kustomization.yaml | 4 ++++ .../core/namespaces/minio-operator/namespace.yaml | 5 +++++ .../operatorgroups/minio-operator/kustomization.yaml | 5 +++++ .../operatorgroups/minio-operator/operatorgroup.yaml | 6 ++++++ .../subscriptions/minio-operator/kustomization.yaml | 5 +++++ .../subscriptions/minio-operator/subscription.yaml | 11 +++++++++++ cluster-scope/bundles/minio/kustomization.yaml | 8 ++++++++ .../overlays/nerc-ocp-infra/kustomization.yaml | 1 + .../overlays/nerc-ocp-obs/kustomization.yaml | 1 + 9 files changed, 46 insertions(+) create mode 100644 cluster-scope/base/core/namespaces/minio-operator/kustomization.yaml create mode 100644 cluster-scope/base/core/namespaces/minio-operator/namespace.yaml create mode 100644 cluster-scope/base/operators.coreos.com/operatorgroups/minio-operator/kustomization.yaml create mode 100644 cluster-scope/base/operators.coreos.com/operatorgroups/minio-operator/operatorgroup.yaml create mode 100644 cluster-scope/base/operators.coreos.com/subscriptions/minio-operator/kustomization.yaml create mode 100644 cluster-scope/base/operators.coreos.com/subscriptions/minio-operator/subscription.yaml create mode 100644 cluster-scope/bundles/minio/kustomization.yaml diff --git a/cluster-scope/base/core/namespaces/minio-operator/kustomization.yaml b/cluster-scope/base/core/namespaces/minio-operator/kustomization.yaml new file mode 100644 index 00000000..db7b3a84 --- /dev/null +++ b/cluster-scope/base/core/namespaces/minio-operator/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - namespace.yaml diff --git a/cluster-scope/base/core/namespaces/minio-operator/namespace.yaml b/cluster-scope/base/core/namespaces/minio-operator/namespace.yaml new file mode 100644 index 00000000..9a19d949 --- /dev/null +++ b/cluster-scope/base/core/namespaces/minio-operator/namespace.yaml @@ -0,0 +1,5 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: minio-operator +spec: {} diff --git a/cluster-scope/base/operators.coreos.com/operatorgroups/minio-operator/kustomization.yaml b/cluster-scope/base/operators.coreos.com/operatorgroups/minio-operator/kustomization.yaml new file mode 100644 index 00000000..8a7089cf --- /dev/null +++ b/cluster-scope/base/operators.coreos.com/operatorgroups/minio-operator/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - operatorgroup.yaml diff --git a/cluster-scope/base/operators.coreos.com/operatorgroups/minio-operator/operatorgroup.yaml b/cluster-scope/base/operators.coreos.com/operatorgroups/minio-operator/operatorgroup.yaml new file mode 100644 index 00000000..98390f24 --- /dev/null +++ b/cluster-scope/base/operators.coreos.com/operatorgroups/minio-operator/operatorgroup.yaml @@ -0,0 +1,6 @@ +apiVersion: operators.coreos.com/v1 +kind: OperatorGroup +metadata: + name: minio-operator + namespace: minio-operator +spec: {} diff --git a/cluster-scope/base/operators.coreos.com/subscriptions/minio-operator/kustomization.yaml b/cluster-scope/base/operators.coreos.com/subscriptions/minio-operator/kustomization.yaml new file mode 100644 index 00000000..00078e0a --- /dev/null +++ b/cluster-scope/base/operators.coreos.com/subscriptions/minio-operator/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - subscription.yaml diff --git a/cluster-scope/base/operators.coreos.com/subscriptions/minio-operator/subscription.yaml b/cluster-scope/base/operators.coreos.com/subscriptions/minio-operator/subscription.yaml new file mode 100644 index 00000000..edc6d759 --- /dev/null +++ b/cluster-scope/base/operators.coreos.com/subscriptions/minio-operator/subscription.yaml @@ -0,0 +1,11 @@ +apiVersion: operators.coreos.com/v1alpha1 +kind: Subscription +metadata: + name: minio-operator + namespace: minio-operator +spec: + channel: stable + installPlanApproval: Automatic + name: minio-operator + source: certified-operators + sourceNamespace: openshift-marketplace diff --git a/cluster-scope/bundles/minio/kustomization.yaml b/cluster-scope/bundles/minio/kustomization.yaml new file mode 100644 index 00000000..c6c87b4d --- /dev/null +++ b/cluster-scope/bundles/minio/kustomization.yaml @@ -0,0 +1,8 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +commonLabels: + nerc.mghpcc.org/bundle: minio +resources: +- ../../base/core/namespaces/minio-operator +- ../../base/operators.coreos.com/operatorgroups/minio-operator +- ../../base/operators.coreos.com/subscriptions/minio-operator diff --git a/cluster-scope/overlays/nerc-ocp-infra/kustomization.yaml b/cluster-scope/overlays/nerc-ocp-infra/kustomization.yaml index 7d8c61e7..250ba1f2 100644 --- a/cluster-scope/overlays/nerc-ocp-infra/kustomization.yaml +++ b/cluster-scope/overlays/nerc-ocp-infra/kustomization.yaml @@ -12,6 +12,7 @@ resources: - ../../bundles/patch-operator - ../../bundles/external-secrets-clustersecretstore - ../../bundles/multicluster-engine-operator +- ../../bundles/minio - ../../bundles/grafana - ../../base/core/namespaces/dex - ../../base/core/namespaces/nerc-ocp-prod diff --git a/cluster-scope/overlays/nerc-ocp-obs/kustomization.yaml b/cluster-scope/overlays/nerc-ocp-obs/kustomization.yaml index 6f7bcb57..e87639e8 100644 --- a/cluster-scope/overlays/nerc-ocp-obs/kustomization.yaml +++ b/cluster-scope/overlays/nerc-ocp-obs/kustomization.yaml @@ -9,6 +9,7 @@ resources: - ../../bundles/clusterissuer-http01 - ../../bundles/nerc-certificate-clusterissuers - ../../bundles/external-secrets-clustersecretstore +- ../../bundles/minio - ../../bundles/grafana - ../../bundles/crunchy-postgres-operator - ../../bundles/keycloak