diff --git a/pkg/install/init.go b/pkg/install/init.go index 35edfa27b0c..a98c9fd7d93 100644 --- a/pkg/install/init.go +++ b/pkg/install/init.go @@ -138,6 +138,7 @@ func (s *SealosInstaller) appendAPIServer() error { etcHostMap := fmt.Sprintf("%s %s", utils.IPFormat(s.Masters[0]), v1.APIServer) file, err := os.OpenFile(etcHostPath, os.O_RDWR|os.O_APPEND, 0666) if err != nil { + logger.Error("open %s file error %s", etcHostPath, err) os.Exit(1) } defer file.Close()