<p>I want to change kubelet logs directory location. For achieving same I have modified <code>/etc/systemd/system/kubelet.service.d/10-kubeadm.conf</code> file contents as follows(as mentioned in <a href="https://stackoverflow.com/questions/46045943/how-to-change-kubelet-working-dir-to-somewhere-else">how to change kubelet working dir to somewhere else</a>)</p>

<pre><code># Note: This dropin only works with kubeadm and kubelet v1.11+
[Service]
Environment="KUBELET_KUBECONFIG_ARGS=--bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf"
Environment="KUBELET_CONFIG_ARGS=--config=/var/lib/kubelet/config.yaml"
Environment="KUBELET_EXTRA_ARGS=--root-dir=/D/kubelet-files/ --log-dir=/D/kubelet-logs/"
# This is a file that "kubeadm init" and "kubeadm join" generates at runtime, populating the KUBELET_KUBEADM_ARGS variable dynamically
EnvironmentFile=-/var/lib/kubelet/kubeadm-flags.env
# This is a file that the user can use for overrides of the kubelet args as a last resort. Preferably, the user should use
# the .NodeRegistration.KubeletExtraArgs object in the configuration files instead. KUBELET_EXTRA_ARGS should be sourced from this file.
EnvironmentFile=-/etc/sysconfig/kubelet
ExecStart=
ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_EXTRA_ARGS $KUBELET_KUBEADM_ARGS
</code></pre>

<p>After this I executed commands :</p>

<pre><code>systemctl daemon-reload
systemctl restart kubelet
</code></pre>

<p>Even I restarted <code>kubeadm</code>. But still logs directory location is not changed and it goes on writing to default <code>/var/lib/kubelet</code> directory . I am using <code>Kubernetes version: v1.11.2</code>. What might be the issue?</p>

<p>I have tried on some machines of mine on GCloud with <code>v1.11.2</code>
and I noticed the same your problem.</p>

<p>The parameter <code>--log-dir</code> in kubelet seems to have no effect.</p>

<p>It is worth opening an issue in kubelet project.</p>
