feat: add prometheus manifest

This commit is contained in:
2026-06-14 14:42:02 +02:00
parent 79ce4f928c
commit d18ed0799c
3 changed files with 79 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
- name: Create monitoring namespace
kubernetes.core.k8s:
name: monitoring
kind: Namespace
state: present
- name: Add Prometheus community Helm repository
kubernetes.core.helm_repository:
name: prometheus-community
repo_url: "https://prometheus-community.github.io/helm-charts"
- name: Copy Prometheus customization values
template:
src: values.yml.j2
dest: /tmp/prometheus-values.yml
- name: Deploy kube-prometheus-stack via Helm
kubernetes.core.helm:
name: kube-prometheus-stack
chart_ref: prometheus-community/kube-prometheus-stack
release_namespace: monitoring
values_files:
- /tmp/prometheus-values.yml
state: present