Add influxdb cluster monitoring

pull/6/head
Eric Paris 2015-06-25 20:20:53 -04:00
parent a127ce7266
commit 7d7d5d4c4e
3 changed files with 22 additions and 1 deletions

View File

@ -43,6 +43,9 @@ flannel_prefix: 12
# room for 4096 nodes with 254 pods per node.
flannel_host_prefix: 24
# Turn to false to disable cluster monitoring with heapster and influxdb
cluster_monitoring: true
# Turn this varable to 'false' to disable whole DNS configuration.
dns_setup: true
# How many replicas in the Replication Controller

View File

@ -0,0 +1,15 @@
---
- name: MONITORING | Assures {{ kube_config_dir }}/addons/cluster-monitoring dir exists
file: path={{ kube_config_dir }}/addons/cluster-monitoring state=directory
- name: MONITORING | Download monitoring files from Kubernetes repo
get_url:
url=https://raw.githubusercontent.com/GoogleCloudPlatform/kubernetes/master/cluster/addons/cluster-monitoring/influxdb/{{ item }}
dest="{{ kube_config_dir }}/addons/cluster-monitoring/"
force=yes
with_items:
- grafana-service.yaml
- heapster-controller.yaml
- heapster-service.yaml
- influxdb-grafana-controller.yaml
- influxdb-service.yaml

View File

@ -13,7 +13,9 @@
- include: dns.yml
when: dns_setup
tags: dns
- include: cluster-monitoring.yml
when: cluster_monitoring
#- name: Get kube-addons script from Kubernetes
# get_url:
@ -39,6 +41,7 @@
TOKEN_DIR: "{{ kube_token_dir }}"
with_items:
- "system:dns"
- "system:monitoring"
register: gentoken
changed_when: "'Added' in gentoken.stdout"
notify: