From 23bd332bd6716871edf893e1d145051831d09444 Mon Sep 17 00:00:00 2001 From: aggarwalakshun Date: Fri, 11 Jul 2025 12:15:03 +0530 Subject: [PATCH] Add HelmRelease and HelmRepository configurations for Prometheus --- .../helm/prometheus/prometheus-release.yml | 28 +++++++++++++++++++ cluster/helm/prometheus/prometheus-repo.yml | 9 ++++++ 2 files changed, 37 insertions(+) create mode 100644 cluster/helm/prometheus/prometheus-release.yml create mode 100644 cluster/helm/prometheus/prometheus-repo.yml diff --git a/cluster/helm/prometheus/prometheus-release.yml b/cluster/helm/prometheus/prometheus-release.yml new file mode 100644 index 0000000..cb7678e --- /dev/null +++ b/cluster/helm/prometheus/prometheus-release.yml @@ -0,0 +1,28 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: prometheus + namespace: monitoring +spec: + interval: 24h + chart: + spec: + chart: prometheus + version: "27.23.0" + sourceRef: + kind: HelmRepository + name: prometheus-community + namespace: flux-system + interval: 24h + install: + remediation: + retries: 3 + upgrade: + remediation: + retries: 3 + values: + service: + enabled: true + type: LoadBalancer + servicePort: 9090 diff --git a/cluster/helm/prometheus/prometheus-repo.yml b/cluster/helm/prometheus/prometheus-repo.yml new file mode 100644 index 0000000..6e3b8d6 --- /dev/null +++ b/cluster/helm/prometheus/prometheus-repo.yml @@ -0,0 +1,9 @@ +--- +apiVersion: source.toolkit.fluxcd.io/v1 +kind: HelmRepository +metadata: + name: prometheus-community + namespace: flux-system +spec: + interval: 24h + url: https://prometheus-community.github.io/helm-charts