From d9a20dcf65d0ae77e2355b9ac9c964ef4f6ff9dc Mon Sep 17 00:00:00 2001 From: Sheogorath <sheogorath@shivering-isles.com> Date: Mon, 4 Oct 2021 23:38:07 +0200 Subject: [PATCH] prometheus: Add experimental deployment --- infrastructure/prometheus/kustomization.yaml | 7 +++++++ infrastructure/prometheus/namespace.yaml | 6 ++++++ infrastructure/prometheus/release.yaml | 15 +++++++++++++++ infrastructure/prometheus/repository.yaml | 7 +++++++ 4 files changed, 35 insertions(+) create mode 100644 infrastructure/prometheus/kustomization.yaml create mode 100644 infrastructure/prometheus/namespace.yaml create mode 100644 infrastructure/prometheus/release.yaml create mode 100644 infrastructure/prometheus/repository.yaml diff --git a/infrastructure/prometheus/kustomization.yaml b/infrastructure/prometheus/kustomization.yaml new file mode 100644 index 000000000..77c66d9c9 --- /dev/null +++ b/infrastructure/prometheus/kustomization.yaml @@ -0,0 +1,7 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: cert-manager +resources: + - namespace.yaml + - repository.yaml + - release.yaml diff --git a/infrastructure/prometheus/namespace.yaml b/infrastructure/prometheus/namespace.yaml new file mode 100644 index 000000000..90d12efda --- /dev/null +++ b/infrastructure/prometheus/namespace.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: monitoring + labels: + name: monitoring diff --git a/infrastructure/prometheus/release.yaml b/infrastructure/prometheus/release.yaml new file mode 100644 index 000000000..b2fa36342 --- /dev/null +++ b/infrastructure/prometheus/release.yaml @@ -0,0 +1,15 @@ +apiVersion: helm.toolkit.fluxcd.io/v2beta1 +kind: HelmRelease +metadata: + name: kube-prometheus + namespace: monitoring +spec: + releaseName: monitoring + chart: + spec: + chart: kube-prometheus-stack + sourceRef: + kind: HelmRepository + name: prometheus-community + version: 19.0.2 + interval: 5m diff --git a/infrastructure/prometheus/repository.yaml b/infrastructure/prometheus/repository.yaml new file mode 100644 index 000000000..64a1a415e --- /dev/null +++ b/infrastructure/prometheus/repository.yaml @@ -0,0 +1,7 @@ +apiVersion: source.toolkit.fluxcd.io/v1beta1 +kind: HelmRepository +metadata: + name: prometheus-community +spec: + interval: 30m + url: https://prometheus-community.github.io/helm-charts -- GitLab