Skip to content

Commit a03f7f9

Browse files
committed
added play to remove unwanted default dashboards
1 parent 934ec7a commit a03f7f9

File tree

1 file changed

+15
-0
lines changed
  • ansible/roles/kube_prometheus_stack/tasks

1 file changed

+15
-0
lines changed

ansible/roles/kube_prometheus_stack/tasks/main.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,3 +157,18 @@
157157
create_namespace: no
158158
wait: yes
159159
wait_timeout: "{{ kube_prometheus_stack_wait_timeout }}"
160+
161+
- name: Delete unwanted default dashboards # currently no way to selectively enabled in helm chart
162+
kubernetes.core.k8s:
163+
state: absent
164+
kind: ConfigMap
165+
namespace: "{{ kube_prometheus_stack_release_namespace }}"
166+
definition:
167+
metadata:
168+
name: "{{ item }}"
169+
loop:
170+
- kube-prometheus-stack-nodes-darwin
171+
- kube-prometheus-stack-grafana-overview
172+
- kube-prometheus-stack-proxy
173+
- kube-prometheus-stack-etcd
174+
- kube-prometheus-stack-alertmanager-overview

0 commit comments

Comments
 (0)