Merge pull request #2132 from erikstmartin/kubelet-rootdir-fix

Fixes #1612 kubelet should fail to start if it cannot create rootDir
pull/6/head
Dawn Chen 2014-11-03 12:51:47 -08:00
commit 2d92305338
2 changed files with 2 additions and 1 deletions

View File

@ -141,7 +141,7 @@ func main() {
}
*rootDirectory = path.Clean(*rootDirectory)
if err := os.MkdirAll(*rootDirectory, 0750); err != nil {
glog.Warningf("Error creating root directory: %v", err)
glog.Fatalf("Error creating root directory: %v", err)
}
// source of all configuration

View File

@ -54,6 +54,7 @@ kube::log::status "Running kubectl with no options"
# Start kubelet
kube::log::status "Starting kubelet"
"${KUBE_OUTPUT_HOSTBIN}/kubelet" \
--root_dir=/tmp/kubelet.$$ \
--etcd_servers="http://${ETCD_HOST}:${ETCD_PORT}" \
--hostname_override="127.0.0.1" \
--address="127.0.0.1" \