From 93d684cd33c1693c054bb1e0bc4c900d807e180f Mon Sep 17 00:00:00 2001 From: Simon Emms Date: Thu, 14 Nov 2024 19:44:01 +0000 Subject: [PATCH] feat(monitoring): enable monitoring --- .../components/monitoring/application.yaml | 46 +++++++++++++++++++ .../components/monitoring/kustomization.yaml | 5 ++ registry/components/monitoring/namespace.yaml | 6 +++ 3 files changed, 57 insertions(+) create mode 100644 registry/components/monitoring/application.yaml create mode 100644 registry/components/monitoring/kustomization.yaml create mode 100644 registry/components/monitoring/namespace.yaml diff --git a/registry/components/monitoring/application.yaml b/registry/components/monitoring/application.yaml new file mode 100644 index 0000000..3dd9ae8 --- /dev/null +++ b/registry/components/monitoring/application.yaml @@ -0,0 +1,46 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: monitoring + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "10" +spec: + project: default + source: + chart: kube-prometheus-stack + repoURL: https://prometheus-community.github.io/helm-charts + targetRevision: 66.1.1 + helm: + valuesObject: + grafana: + ingress: + enabled: true + annotations: + kubernetes.io/tls-acme: "true" + cert-manager.io/cluster-issuer: letsencrypt-staging + gethomepage.dev/description: Grafana Dashboards + gethomepage.dev/enabled: "true" + gethomepage.dev/group: Cluster Management + gethomepage.dev/icon: grafana + gethomepage.dev/name: Grafana + ingressClassName: nginx + hosts: + - monitoring.dev.simonemms.com + tls: + - hosts: + - monitoring.dev.simonemms.com + secretName: monitoring-tls + sidecar: + dashboards: + enabled: true + destination: + server: https://kubernetes.default.svc + namespace: monitoring + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true + - ServerSideApply=true diff --git a/registry/components/monitoring/kustomization.yaml b/registry/components/monitoring/kustomization.yaml new file mode 100644 index 0000000..0e0a709 --- /dev/null +++ b/registry/components/monitoring/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - application.yaml + - namespace.yaml diff --git a/registry/components/monitoring/namespace.yaml b/registry/components/monitoring/namespace.yaml new file mode 100644 index 0000000..3b687f5 --- /dev/null +++ b/registry/components/monitoring/namespace.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: monitoring + annotations: + argocd.argoproj.io/sync-wave: "-1"