Skip to content

Commit b4bfdc1

Browse files
committed
fix join master bug support 1.16.0
1 parent cd2a076 commit b4bfdc1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

install/sealos.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ package install
22

33
import (
44
"fmt"
5-
"github.com/wonderivan/logger"
65
"strings"
6+
7+
"github.com/wonderivan/logger"
78
)
89

910
type CleanCluster interface {
@@ -60,6 +61,7 @@ func (s *SealosInstaller) Command(version string, name CommandType) (cmd string)
6061
//todo
6162
if VersionToInt(version) >= 115 {
6263
cmds[InitMaster] = `kubeadm init --config=/root/kubeadm-config.yaml --upload-certs`
64+
cmds[JoinMaster] = fmt.Sprintf("kubeadm join %s:6443 --token %s --discovery-token-ca-cert-hash %s --control-plane --certificate-key %s", IpFormat(Masters[0]), JoinToken, TokenCaCertHash, CertificateKey)
6365
}
6466

6567
v, ok := cmds[name]

0 commit comments

Comments
 (0)