Add Prometheus HelmRelease, PersistentVolumeClaim, and HelmRepository
All checks were successful
Validate Kubernetes Manifests / kubeconform (push) Successful in 12s

This commit is contained in:
2026-01-17 03:02:11 +05:30
parent 868063232a
commit 7fee9e8c96
3 changed files with 45 additions and 0 deletions

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