summaryrefslogtreecommitdiffstats
path: root/roles/openshift_logging/templates
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2017-05-09 11:04:10 -0600
committerRich Megginson <rmeggins@redhat.com>2017-05-09 21:47:34 -0600
commit02a5df1c54c501ebd525b9337c5a3ade04fe31e4 (patch)
tree3eaf4a0298c4573781fd6f3c0a304a3d7d3748f2 /roles/openshift_logging/templates
parent5d408eeca04cb3c60a7e4918218e87fd43e57861 (diff)
downloadopenshift-02a5df1c54c501ebd525b9337c5a3ade04fe31e4.tar.gz
openshift-02a5df1c54c501ebd525b9337c5a3ade04fe31e4.tar.bz2
openshift-02a5df1c54c501ebd525b9337c5a3ade04fe31e4.tar.xz
openshift-02a5df1c54c501ebd525b9337c5a3ade04fe31e4.zip
use docker_log_driver and /etc/docker/daemon.json to determine log driver
We check the following variables, if they are defined, in the order listed below, to see if the journald log driver is set: * openshift_hosted_logging_use_journal * docker_log_driver * openshift.docker.log_driver * openshift.docker.options (look for '--log-driver=journald') If none of these are set, we leave openshift_logging_fluentd_use_journal undefined, and mount both /etc/sysconfig/docker and /etc/docker (for daemon.json) so that fluentd can determine which log driver is being used.
Diffstat (limited to 'roles/openshift_logging/templates')
-rw-r--r--roles/openshift_logging/templates/fluentd.j26
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/openshift_logging/templates/fluentd.j2 b/roles/openshift_logging/templates/fluentd.j2
index d13691259..5c93d823e 100644
--- a/roles/openshift_logging/templates/fluentd.j2
+++ b/roles/openshift_logging/templates/fluentd.j2
@@ -59,6 +59,9 @@ spec:
- name: dockercfg
mountPath: /etc/sysconfig/docker
readOnly: true
+ - name: dockerdaemoncfg
+ mountPath: /etc/docker
+ readOnly: true
{% if openshift_logging_use_mux_client | bool %}
- name: muxcerts
mountPath: /etc/fluent/muxkeys
@@ -154,6 +157,9 @@ spec:
- name: dockercfg
hostPath:
path: /etc/sysconfig/docker
+ - name: dockerdaemoncfg
+ hostPath:
+ path: /etc/docker
{% if openshift_logging_use_mux_client | bool %}
- name: muxcerts
secret: