Merge pull request #10597 from a-robinson/fluentd

Run fluentd on the master to collect the core master logs
This commit is contained in:
Zach Loafman
2015-07-04 21:12:47 -07:00
9 changed files with 103 additions and 31 deletions

View File

@@ -5,7 +5,7 @@ metadata:
spec:
containers:
- name: fluentd-elasticsearch
image: gcr.io/google_containers/fluentd-elasticsearch:1.5
image: gcr.io/google_containers/fluentd-elasticsearch:1.6
resources:
limits:
cpu: 100m

View File

@@ -5,7 +5,7 @@ metadata:
spec:
containers:
- name: fluentd-cloud-logging
image: gcr.io/google_containers/fluentd-gcp:1.7
image: gcr.io/google_containers/fluentd-gcp:1.8
resources:
limits:
cpu: 100m

View File

@@ -38,6 +38,13 @@ base:
- kube-client-tools
- kube-master-addons
- kube-admission-controls
{% if pillar.get('enable_node_logging', '').lower() == 'true' and pillar['logging_destination'] is defined %}
{% if pillar['logging_destination'] == 'elasticsearch' %}
- fluentd-es
{% elif pillar['logging_destination'] == 'gcp' %}
- fluentd-gcp
{% endif %}
{% endif %}
{% if grains['cloud'] is defined and grains['cloud'] != 'vagrant' %}
- logrotate
{% endif %}