Skip to content

Commit a3d1ae1

Browse files
committed
Playbook to install kube-prometheus-stack
1 parent d2dff79 commit a3d1ae1

File tree

4 files changed

+5512
-0
lines changed

4 files changed

+5512
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
- name: Ensure kubernetes.core collection is installed
3+
hosts: masters
4+
gather_facts: no
5+
tasks:
6+
- name: Install required Ansible collection
7+
ansible.builtin.command:
8+
cmd: ansible-galaxy collection install kubernetes.core
9+
changed_when: false
10+
delegate_to: "{{ groups['masters'][0] }}"
11+
12+
- name: Deploy kube-prometheus-stack to Kubernetes
13+
hosts: masters
14+
become: yes
15+
roles:
16+
- install-monitoring
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
---
3+
helm_release_name: k8s-monitoring
4+
helm_chart_name: prometheus-community/kube-prometheus-stack
5+
helm_chart_version: "78.4.0"
6+
helm_namespace: monitoring
7+
helm_repo_name: prometheus-community
8+
helm_repo_url: https://prometheus-community.github.io/helm-charts
9+
helm_custom_values: "power-custom-values.yaml"

0 commit comments

Comments
 (0)