From 626919fef1f1ec47b94bdda2cd27014bec9b7a68 Mon Sep 17 00:00:00 2001 From: Banashri Mandal Date: Wed, 7 Feb 2024 17:44:58 +0100 Subject: [PATCH] Configure observability cluster for loki deployment (#38) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: ​/Thor(sten)?/ Schwesig <89909507+schwesig@users.noreply.github.com> --- clusters/nerc-ocp-obs/kustomization.yaml | 11 +++++++++++ clusters/nerc-ocp-obs/loki/application.yaml | 15 +++++++++++++++ clusters/nerc-ocp-obs/loki/kustomization.yaml | 4 ++++ 3 files changed, 30 insertions(+) create mode 100644 clusters/nerc-ocp-obs/loki/application.yaml create mode 100644 clusters/nerc-ocp-obs/loki/kustomization.yaml diff --git a/clusters/nerc-ocp-obs/kustomization.yaml b/clusters/nerc-ocp-obs/kustomization.yaml index 12165c8..8abf499 100644 --- a/clusters/nerc-ocp-obs/kustomization.yaml +++ b/clusters/nerc-ocp-obs/kustomization.yaml @@ -2,8 +2,11 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: - ../lib/cluster-scope +- ../lib/logging +- loki - fake-metrics-server + nameSuffix: -obs patches: @@ -33,3 +36,11 @@ patches: - op: replace path: /spec/source/path value: cluster-scope/overlays/nerc-ocp-obs + + - target: + kind: Application + name: logging + patch: | + - op: replace + path: /spec/source/path + value: logging/overlays/nerc-ocp-obs diff --git a/clusters/nerc-ocp-obs/loki/application.yaml b/clusters/nerc-ocp-obs/loki/application.yaml new file mode 100644 index 0000000..fd717b2 --- /dev/null +++ b/clusters/nerc-ocp-obs/loki/application.yaml @@ -0,0 +1,15 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: loki + labels: + nerc.mghpcc.org/sync-policy: common +spec: + project: default + source: + repoURL: https://github.com/ocp-on-nerc/nerc-ocp-config.git + targetRevision: HEAD + path: loki/overlays/nerc-ocp-obs + destination: + name: nerc-ocp-obs + namespace: openshift-operators-redhat diff --git a/clusters/nerc-ocp-obs/loki/kustomization.yaml b/clusters/nerc-ocp-obs/loki/kustomization.yaml new file mode 100644 index 0000000..1f43d0d --- /dev/null +++ b/clusters/nerc-ocp-obs/loki/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- application.yaml