Add Prometheus HelmRelease, PersistentVolumeClaim, and HelmRepository #278

Merged
aggarwalakshun merged 1 commits from prometheus into main 2026-01-17 03:03:16 +05:30
3 changed files with 45 additions and 0 deletions
Showing only changes of commit 7fee9e8c96 - Show all commits

View File

@@ -0,0 +1,14 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: prometheus-longhorn
namespace: monitoring
spec:
resources:
requests:
storage: 2Gi
volumeMode: Filesystem
accessModes:
- ReadWriteMany
storageClassName: longhorn

View File

@@ -0,0 +1,22 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: prometheus
namespace: monitoring
spec:
interval: 6h
chart:
spec:
chart: prometheus
version: "28.4.0"
sourceRef:
kind: HelmRepository
name: prometheus-community
namespace: flux-system
interval: 6h
values:
server:
persistentVolume:
enabled: true
existingClaim: prometheus-longhorn

View File

@@ -0,0 +1,9 @@
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: prometheus-community
namespace: flux-system
spec:
interval: 6h
url: https://prometheus-community.github.io/helm-charts