Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Sealos
Commits
96fe90a7
Commit
96fe90a7
authored
6 years ago
by
fanux
Browse files
Options
Download
Email Patches
Plain Diff
add wait for cert
parent
49112cae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install/sealos.go
+2
-0
install/sealos.go
with
2 additions
and
0 deletions
+2
-0
install/sealos.go
+
2
-
0
View file @
96fe90a7
...
...
@@ -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
:
]
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help