Create /var/lib/etcd with 0700

If we let the hostpath with DirectoryOrCreate to create this directory
it defaults to 0755. A default install should use 0700 for better
security especially if the directory is not present.

Change-Id: Idc0266685895767b0d1c5710c8a4fb704805652f
This commit is contained in:
Davanum Srinivas
2018-12-08 19:04:51 -05:00
parent b18660eb6c
commit 836f413cf1
2 changed files with 13 additions and 1 deletions

View File

@@ -67,7 +67,7 @@ func TestCreateLocalEtcdStaticPodManifestFile(t *testing.T) {
KubernetesVersion: "v1.7.0",
Etcd: kubeadmapi.Etcd{
Local: &kubeadmapi.LocalEtcd{
DataDir: "/var/lib/etcd",
DataDir: tmpdir + "/etcd",
},
},
},