First release
This commit is contained in:
parent
ce73b2d37b
commit
0c361b1ebc
19 changed files with 26940 additions and 0 deletions
34
tasks/main.yml
Normal file
34
tasks/main.yml
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
#- debug: var=my_context
|
||||
# tags: traefik
|
||||
|
||||
- name: grafana setup
|
||||
block:
|
||||
- name: namespace
|
||||
k8s:
|
||||
state: "{{ grafana_state }}"
|
||||
context: "{{ my_context }}"
|
||||
name: "{{ my_namespace }}"
|
||||
api_version: v1
|
||||
kind: Namespace
|
||||
|
||||
- name: Prometheus files need to be {{ prometheus_state }}
|
||||
k8s:
|
||||
state: "{{ grafana_state }}"
|
||||
context: "{{ my_context }}"
|
||||
resource_definition: "{{ lookup('template', item) | from_yaml }}"
|
||||
with_items:
|
||||
- config.yaml
|
||||
- dashboards-coredns.yaml
|
||||
- dashboards-etcd.yaml
|
||||
- dashboards-k8s.yaml
|
||||
- dashboards-k8s-nodes.yaml
|
||||
- dashboards-k8s-resources-1.yaml
|
||||
- dashboards-k8s-resources-2.yaml
|
||||
- dashboards-nginx-ingress.yaml
|
||||
- dashboards-node-exporter.yaml
|
||||
- dashboards-prom.yaml
|
||||
- datasources.yaml
|
||||
- deployment.yaml
|
||||
- providers.yaml
|
||||
- service.yaml
|
||||
tags: grafana
|
||||
Loading…
Add table
Add a link
Reference in a new issue