Skip to content

Commit

Permalink
Enable log collection from master.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtfulCoder committed Apr 3, 2015
1 parent 620af16 commit 39bb6d3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions cluster/saltbase/salt/top.sls
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ base:
- cadvisor
- kubelet
- kube-proxy
{% if pillar.get('enable_node_logging', '').lower() == 'true' %}
{% if pillar['logging_destination'] is defined and pillar['logging_destination'] == 'elasticsearch' %}
{% if pillar.get('enable_node_logging', '').lower() == 'true' and pillar['logging_destination'] is defined %}
{% if pillar['logging_destination'] == 'elasticsearch' %}
- fluentd-es
{% endif %}
{% if pillar['logging_destination'] is defined and pillar['logging_destination'] == 'gcp' %}
{% elif pillar['logging_destination'] == 'gcp' %}
- fluentd-gcp
{% endif %}
{% endif %}
Expand Down Expand Up @@ -57,6 +56,13 @@ base:
- kubelet
{% endif %}

{% 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 %}

'roles:kubernetes-pool-vsphere':
- match: grain
Expand Down

0 comments on commit 39bb6d3

Please sign in to comment.