Skip to content

Commit

Permalink
缺陷: 最新版本sealos init 安装k8s 失败 (labring#778)
Browse files Browse the repository at this point in the history
Fixes labring#691

(cherry picked from commit 2b45783)
  • Loading branch information
ldseraph authored and cuisongliu committed Dec 29, 2021
1 parent 78f66fe commit cb2ad88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/install/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit cb2ad88

Please sign in to comment.