apiVersion: helm.toolkit.fluxcd.io/v2beta1 kind: HelmRelease metadata: name: kube-prometheus-stack namespace: prometheus-ns spec: interval: 1m chart: spec: chart: kube-prometheus-stack version: "" # Specify the version you want to deploy sourceRef: kind: HelmRepository name: prometheus-community namespace: flux-system values: prometheus: prometheusSpec: retention: 10d # Example of customizing retention period alertmanager: alertmanagerSpec: retention: 10d