diff --git a/apps/production/monitoring/kube-prometheus-stack.yaml b/apps/production/monitoring/kube-prometheus-stack.yaml new file mode 100644 index 0000000..4085524 --- /dev/null +++ b/apps/production/monitoring/kube-prometheus-stack.yaml @@ -0,0 +1,27 @@ +--- +apiVersion: source.toolkit.fluxcd.io/v1 +kind: HelmRepository +metadata: + name: prometheus-community + namespace: monitoring +spec: + interval: 12h + url: https://prometheus-community.github.io/helm-charts +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: kube-prometheus-stack + namespace: monitoring +spec: + interval: 30m + chart: + spec: + chart: kube-prometheus-stack + version: "62.7.0" + sourceRef: + kind: HelmRepository + name: kube-prometheus-stack + namespace: monitoring + interval: 12h + #values: {} diff --git a/apps/production/monitoring/kustomization.yaml b/apps/production/monitoring/kustomization.yaml new file mode 100644 index 0000000..5c2af1f --- /dev/null +++ b/apps/production/monitoring/kustomization.yaml @@ -0,0 +1,7 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: monitoring +resources: + - namespace.yaml + - kube-prometheus-stack.yaml diff --git a/apps/production/monitoring/namespace.yaml b/apps/production/monitoring/namespace.yaml new file mode 100644 index 0000000..ff7ae1b --- /dev/null +++ b/apps/production/monitoring/namespace.yaml @@ -0,0 +1,5 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: monitoring