mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
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:
parent
60eba74c14
commit
5d117d7b97
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user