Change systemd unit files perm to 644

systemd complains about the conf file is not world-inaccessible

Signed-off-by: Zhongcheng Lao <Zhongcheng.Lao@microsoft.com>
pull/5492/head
Zhongcheng Lao 2019-09-29 23:44:34 +08:00
parent 90bf0f8ec5
commit 4ab0834309
No known key found for this signature in database
GPG Key ID: 3B0C92A7E58EF413
1 changed files with 2 additions and 2 deletions

View File

@ -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