mirror of
https://github.com/labring/sealos.git
synced 2026-09-24 15:46:19 +08:00
Fixes #691
(cherry picked from commit 2b4578385c)
Co-authored-by: ldseraph <ld.seraph@163.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user