Skip to content

Commit

Permalink
Change systemd unit files perm to 644
Browse files Browse the repository at this point in the history
systemd complains about the conf file is not world-inaccessible

Signed-off-by: Zhongcheng Lao <[email protected]>
  • Loading branch information
laozc committed Sep 29, 2019
1 parent 90bf0f8 commit 4ab0834
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/minikube/bootstrapper/kubeadm/kubeadm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4ab0834

Please sign in to comment.