From 4ab0834309dca560b4f41d2a825faae6697779fd Mon Sep 17 00:00:00 2001 From: Zhongcheng Lao Date: Sun, 29 Sep 2019 23:44:34 +0800 Subject: [PATCH] Change systemd unit files perm to 644 systemd complains about the conf file is not world-inaccessible Signed-off-by: Zhongcheng Lao --- pkg/minikube/bootstrapper/kubeadm/kubeadm.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/minikube/bootstrapper/kubeadm/kubeadm.go b/pkg/minikube/bootstrapper/kubeadm/kubeadm.go index 35369c8bb4d8..904aa5f3f675 100644 --- a/pkg/minikube/bootstrapper/kubeadm/kubeadm.go +++ b/pkg/minikube/bootstrapper/kubeadm/kubeadm.go @@ -749,8 +749,8 @@ func NewKubeletService(cfg config.KubernetesConfig) ([]byte, error) { func configFiles(cfg config.KubernetesConfig, kubeadm []byte, kubelet []byte, kubeletSvc []byte) []assets.CopyableFile { fs := []assets.CopyableFile{ assets.NewMemoryAssetTarget(kubeadm, yamlConfigPath, "0640"), - assets.NewMemoryAssetTarget(kubelet, kubeletSystemdConfFile, "0640"), - assets.NewMemoryAssetTarget(kubeletSvc, kubeletServiceFile, "0640"), + assets.NewMemoryAssetTarget(kubelet, kubeletSystemdConfFile, "0644"), + assets.NewMemoryAssetTarget(kubeletSvc, kubeletServiceFile, "0644"), } // Copy the default CNI config (k8s.conf), so that kubelet can successfully // start a Pod in the case a user hasn't manually installed any CNI plugin