From 5d117d7b9788b5727ffd5844becfbf00013f0013 Mon Sep 17 00:00:00 2001
From: Eric Paris <eparis@redhat.com>
Date: Tue, 27 Jan 2015 11:34:45 -0500
Subject: [PATCH] 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.
---
contrib/init/systemd/kubelet.service | 1 +
1 file changed, 1 insertion(+)
diff --git a/contrib/init/systemd/kubelet.service b/contrib/init/systemd/kubelet.service
index 6990f29..973db5b 100644
--- a/contrib/init/systemd/kubelet.service
+++ b/contrib/init/systemd/kubelet.service
@@ -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 \
--
2.1.0