Change kubelet working dir to /var/lib/kubelet

Some image based OS do not allow writing to /. Since the kubelet looks
for .dockercfg files in the working dir and uses / as the working dir,
this means one can never set a .dockercfg on those distros. This moves
the kubelet working dir to /var/lib/kubelet, where the kubelet naturally
does its work.
This commit is contained in:
Eric Paris 2015-01-27 11:34:45 -05:00
parent 60eba74c14
commit 5d117d7b97

View File

@ -5,6 +5,7 @@ After=docker.service cadvisor.service
Requires=docker.service
[Service]
WorkingDirectory=/var/lib/kubelet
EnvironmentFile=-/etc/kubernetes/config
EnvironmentFile=-/etc/kubernetes/kubelet
ExecStart=/usr/bin/kubelet \