From 0089bf5b9df42befc996f8f003ce056cdcfda1a2 Mon Sep 17 00:00:00 2001 From: Vladimir Rutsky Date: Thu, 16 Feb 2017 20:54:41 +0300 Subject: [PATCH] Mount host's /var/log into kubelet container Kubelet is responsible for creating symlinks from /var/lib/docker to /var/log to make fluentd logging collector work. However without using host's /var/log those links are invisible to fluentd. This is done on rkt configuration too. --- roles/kubernetes/node/templates/kubelet-container.j2 | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/kubernetes/node/templates/kubelet-container.j2 b/roles/kubernetes/node/templates/kubelet-container.j2 index 5126f1b59..bf0dffea0 100644 --- a/roles/kubernetes/node/templates/kubelet-container.j2 +++ b/roles/kubernetes/node/templates/kubelet-container.j2 @@ -19,6 +19,7 @@ {% endif -%} -v /sys:/sys:ro \ -v {{ docker_daemon_graph }}:/var/lib/docker:rw \ + -v /var/log:/var/log:rw \ -v /var/lib/kubelet:/var/lib/kubelet:shared \ -v /var/run:/var/run:rw \ -v {{kube_config_dir}}:{{kube_config_dir}}:ro \