mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 12:18:16 +00:00 
			
		
		
		
	Merge pull request #6396 from ArtfulCoder/master_logging
Enable log collection from master.
This commit is contained in:
		@@ -14,11 +14,10 @@ base:
 | 
				
			|||||||
    - cadvisor
 | 
					    - cadvisor
 | 
				
			||||||
    - kubelet
 | 
					    - kubelet
 | 
				
			||||||
    - kube-proxy
 | 
					    - kube-proxy
 | 
				
			||||||
{% if pillar.get('enable_node_logging', '').lower() == 'true' %}
 | 
					{% if pillar.get('enable_node_logging', '').lower() == 'true' and pillar['logging_destination'] is defined %}
 | 
				
			||||||
  {% if pillar['logging_destination'] is defined and pillar['logging_destination'] == 'elasticsearch' %}
 | 
					  {% if pillar['logging_destination'] == 'elasticsearch' %}
 | 
				
			||||||
    - fluentd-es
 | 
					    - fluentd-es
 | 
				
			||||||
  {% endif %}
 | 
					  {% elif pillar['logging_destination'] == 'gcp' %}
 | 
				
			||||||
  {% if pillar['logging_destination'] is defined and pillar['logging_destination'] == 'gcp' %}
 | 
					 | 
				
			||||||
    - fluentd-gcp
 | 
					    - fluentd-gcp
 | 
				
			||||||
  {% endif %}
 | 
					  {% endif %}
 | 
				
			||||||
{% endif %}
 | 
					{% endif %}
 | 
				
			||||||
@@ -57,6 +56,13 @@ base:
 | 
				
			|||||||
    - kubelet
 | 
					    - kubelet
 | 
				
			||||||
{% endif %}
 | 
					{% 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':
 | 
					  'roles:kubernetes-pool-vsphere':
 | 
				
			||||||
    - match: grain
 | 
					    - match: grain
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user