From 58b5e8608ec18c486480fcf90d6ba1661c61e2b2 Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Fri, 2 Feb 2024 06:55:45 -0700 Subject: [PATCH] Fake metrics endpoint to make ODF happy in obs cluster While the "monitoring-endpoint" configuration in OCS 4.8 was optional, it appears to be required in 4.10, and ODF refuses to deploy if it can't reach the endpoint. This commit provides a fake metrics endpoint to make the ODF operator happy. --- .../fake-metrics-server/application.yaml | 15 +++++++++++++++ .../fake-metrics-server/kustomization.yaml | 4 ++++ clusters/nerc-ocp-obs/kustomization.yaml | 1 + 3 files changed, 20 insertions(+) create mode 100644 clusters/nerc-ocp-obs/fake-metrics-server/application.yaml create mode 100644 clusters/nerc-ocp-obs/fake-metrics-server/kustomization.yaml diff --git a/clusters/nerc-ocp-obs/fake-metrics-server/application.yaml b/clusters/nerc-ocp-obs/fake-metrics-server/application.yaml new file mode 100644 index 0000000..13fdfa0 --- /dev/null +++ b/clusters/nerc-ocp-obs/fake-metrics-server/application.yaml @@ -0,0 +1,15 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: fake-metrics-server + labels: + nerc.mghpcc.org/sync-policy: common +spec: + destination: + name: nerc-ocp-obs + namespace: openshift-storage + project: default + source: + repoURL: https://github.com/ocp-on-nerc/nerc-ocp-config.git + path: fake-metrics-server/overlays/nerc-ocp-obs + targetRevision: HEAD diff --git a/clusters/nerc-ocp-obs/fake-metrics-server/kustomization.yaml b/clusters/nerc-ocp-obs/fake-metrics-server/kustomization.yaml new file mode 100644 index 0000000..1f43d0d --- /dev/null +++ b/clusters/nerc-ocp-obs/fake-metrics-server/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- application.yaml diff --git a/clusters/nerc-ocp-obs/kustomization.yaml b/clusters/nerc-ocp-obs/kustomization.yaml index e45a0a6..12165c8 100644 --- a/clusters/nerc-ocp-obs/kustomization.yaml +++ b/clusters/nerc-ocp-obs/kustomization.yaml @@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ../lib/cluster-scope +- fake-metrics-server nameSuffix: -obs