From cb2ad88d5cd2a476eb354d5b4b8371d991c41f70 Mon Sep 17 00:00:00 2001 From: ldseraph Date: Wed, 29 Dec 2021 11:56:01 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=BA=E9=99=B7:=20=E6=9C=80=E6=96=B0?= =?UTF-8?q?=E7=89=88=E6=9C=ACsealos=20init=20=E5=AE=89=E8=A3=85k8s=20?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=20(#778)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #691 (cherry picked from commit 2b4578385c57936d9af492b98ebaf9438cff9e81) --- pkg/install/init.go | 1 + 1 file changed, 1 insertion(+) 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()