mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 13:31:52 +00:00
Add influxdb cluster monitoring
This commit is contained in:
parent
a127ce7266
commit
7d7d5d4c4e
@ -43,6 +43,9 @@ flannel_prefix: 12
|
|||||||
# room for 4096 nodes with 254 pods per node.
|
# room for 4096 nodes with 254 pods per node.
|
||||||
flannel_host_prefix: 24
|
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.
|
# Turn this varable to 'false' to disable whole DNS configuration.
|
||||||
dns_setup: true
|
dns_setup: true
|
||||||
# How many replicas in the Replication Controller
|
# How many replicas in the Replication Controller
|
||||||
|
@ -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
|
@ -13,7 +13,9 @@
|
|||||||
|
|
||||||
- include: dns.yml
|
- include: dns.yml
|
||||||
when: dns_setup
|
when: dns_setup
|
||||||
tags: dns
|
|
||||||
|
- include: cluster-monitoring.yml
|
||||||
|
when: cluster_monitoring
|
||||||
|
|
||||||
#- name: Get kube-addons script from Kubernetes
|
#- name: Get kube-addons script from Kubernetes
|
||||||
# get_url:
|
# get_url:
|
||||||
@ -39,6 +41,7 @@
|
|||||||
TOKEN_DIR: "{{ kube_token_dir }}"
|
TOKEN_DIR: "{{ kube_token_dir }}"
|
||||||
with_items:
|
with_items:
|
||||||
- "system:dns"
|
- "system:dns"
|
||||||
|
- "system:monitoring"
|
||||||
register: gentoken
|
register: gentoken
|
||||||
changed_when: "'Added' in gentoken.stdout"
|
changed_when: "'Added' in gentoken.stdout"
|
||||||
notify:
|
notify:
|
||||||
|
Loading…
Reference in New Issue
Block a user