mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Enable log collection from master.
This commit is contained in:
parent
620af16892
commit
39bb6d3777
@ -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 %}
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user