Add prometheus + grafana helm

main
trivernis 1 year ago
parent 57de07d415
commit 22bebb3a28
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kube-system
metadata:
name: metrics
resources:
- app/repository.yaml
- app/release.yaml

@ -0,0 +1,19 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: prometheus
namespace: metrics
spec:
releaseName: prometheus
chart:
spec:
chart: kube-prometheus-stack
sourceRef:
kind: HelmRepository
name: prometheus
interval: 60m
install:
remediation:
retries: 3
values:
namespaceOverride: metrics

@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: prometheus
namespace: metrics
spec:
interval: 60m
url: https://prometheus-community.github.io/helm-charts

@ -45,6 +45,21 @@ spec:
--- ---
apiVersion: kustomize.toolkit.fluxcd.io/v1 apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization kind: Kustomization
metadata:
name: apps-metrics
namespace: flux-system
spec:
interval: 5m
sourceRef:
kind: GitRepository
name: flux-system
path: ./apps/metrics
prune: true
wait: true
timeout: 5m0s
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata: metadata:
name: apps-plantwiki name: apps-plantwiki
namespace: flux-system namespace: flux-system

Loading…
Cancel
Save