From 25685bf019d2d172ad92be4bad76d85c6154d643 Mon Sep 17 00:00:00 2001 From: Luke Ashe-Browne Date: Tue, 6 Apr 2021 02:14:32 +0100 Subject: [PATCH] add prometheus component setup --- components/prometheus/namespace.yaml | 4 ++++ .../prometheus-community_helmrepository.yaml | 10 ++++++++++ components/prometheus/prometheus-stack.yaml | 16 ++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 components/prometheus/namespace.yaml create mode 100644 components/prometheus/prometheus-community_helmrepository.yaml create mode 100644 components/prometheus/prometheus-stack.yaml diff --git a/components/prometheus/namespace.yaml b/components/prometheus/namespace.yaml new file mode 100644 index 0000000..a88587f --- /dev/null +++ b/components/prometheus/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: prometheus-system diff --git a/components/prometheus/prometheus-community_helmrepository.yaml b/components/prometheus/prometheus-community_helmrepository.yaml new file mode 100644 index 0000000..9427d46 --- /dev/null +++ b/components/prometheus/prometheus-community_helmrepository.yaml @@ -0,0 +1,10 @@ +--- +apiVersion: source.toolkit.fluxcd.io/v1beta1 +kind: HelmRepository +metadata: + name: prometheus-community + namespace: prometheus-system +spec: + interval: 20m0s + url: https://prometheus-community.github.io/helm-charts + diff --git a/components/prometheus/prometheus-stack.yaml b/components/prometheus/prometheus-stack.yaml new file mode 100644 index 0000000..9af802f --- /dev/null +++ b/components/prometheus/prometheus-stack.yaml @@ -0,0 +1,16 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2beta1 +kind: HelmRelease +metadata: + name: prometheus-stack + namespace: prometheus-system +spec: + chart: + spec: + chart: prometheus-stack + sourceRef: + kind: HelmRepository + name: prometheus-community + interval: 20m0s + +