From ee83021182cd92154f55ad8d0e33fabb96372297 Mon Sep 17 00:00:00 2001 From: Jan Chaloupka Date: Thu, 31 May 2018 14:45:13 +0200 Subject: [PATCH] Mount the kubeletConfigPath rw when running containerized node e2e tests The kubelet needs to create dynamic-kubelet-config directory under the kubeletConfigPath when initialing dynamic config directory. --- test/e2e_node/services/kubelet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e_node/services/kubelet.go b/test/e2e_node/services/kubelet.go index 18c62413b3e..e9a9a807918 100644 --- a/test/e2e_node/services/kubelet.go +++ b/test/e2e_node/services/kubelet.go @@ -219,7 +219,7 @@ func (e *E2EServices) startKubelet() (*server, error) { // if we will generate a kubelet config file, we need to mount that path into the container too if genKubeletConfigFile { - cmdArgs = append(cmdArgs, "-v", filepath.Dir(kubeletConfigPath)+":"+filepath.Dir(kubeletConfigPath)+":ro") + cmdArgs = append(cmdArgs, "-v", filepath.Dir(kubeletConfigPath)+":"+filepath.Dir(kubeletConfigPath)+":rw") } cmdArgs = append(cmdArgs, hyperkubeImage, "/hyperkube", "kubelet", "--containerized")