Skip to content

Commit

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

(cherry picked from commit 2b45783)

Co-authored-by: ldseraph <[email protected]>
  • Loading branch information
cuisongliu and ldseraph authored Dec 29, 2021
1 parent 78f66fe commit 03208cc
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 03208cc

Please sign in to comment.