Commit 96fe90a7 authored by fanux's avatar fanux
Browse files

add wait for cert

parent 49112cae
Showing with 2 additions and 0 deletions
+2 -0
......@@ -3,6 +3,7 @@ package install
import (
"fmt"
"strings"
"time"
)
//Installer is
......@@ -53,6 +54,7 @@ func (s *SealosInstaller) InstallMaster0() {
//JoinMasters is
func (s *SealosInstaller) JoinMasters() {
time.Sleep(3 * time.Second)
cmd := fmt.Sprintf("kubeadm join %s:6443 --token %s --discovery-token-ca-cert-hash %s --experimental-control-plane --certificate-key %s", s.Masters[0], s.JoinToken, s.TokenCaCertHash, s.CertificateKey)
for _, master := range s.Masters[1:] {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment