add HelmRelease and HelmRepository for Prometheus

This commit is contained in:
2025-10-16 16:32:06 +05:30
parent d16cc8c174
commit 245c846031
2 changed files with 37 additions and 0 deletions

View File

@@ -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.40.1"
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

View File

@@ -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