Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
d7e3e82f
Unverified
Commit
d7e3e82f
authored
May 14, 2018
by
Lucas Käldström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kubeadm: Contact the kubelet on its healthz port 10248 instead of its readonly port
parent
f5a91f41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
init.go
cmd/kubeadm/app/cmd/init.go
+1
-8
No files found.
cmd/kubeadm/app/cmd/init.go
View file @
d7e3e82f
...
@@ -584,14 +584,7 @@ func waitForAPIAndKubelet(waiter apiclient.Waiter) error {
...
@@ -584,14 +584,7 @@ func waitForAPIAndKubelet(waiter apiclient.Waiter) error {
go
func
(
errC
chan
error
,
waiter
apiclient
.
Waiter
)
{
go
func
(
errC
chan
error
,
waiter
apiclient
.
Waiter
)
{
// This goroutine can only make kubeadm init fail. If this check succeeds, it won't do anything special
// This goroutine can only make kubeadm init fail. If this check succeeds, it won't do anything special
if
err
:=
waiter
.
WaitForHealthyKubelet
(
40
*
time
.
Second
,
"http://localhost:10255/healthz"
);
err
!=
nil
{
if
err
:=
waiter
.
WaitForHealthyKubelet
(
40
*
time
.
Second
,
"http://localhost:10248/healthz"
);
err
!=
nil
{
errC
<-
err
}
}(
errorChan
,
waiter
)
go
func
(
errC
chan
error
,
waiter
apiclient
.
Waiter
)
{
// This goroutine can only make kubeadm init fail. If this check succeeds, it won't do anything special
if
err
:=
waiter
.
WaitForHealthyKubelet
(
60
*
time
.
Second
,
"http://localhost:10255/healthz/syncloop"
);
err
!=
nil
{
errC
<-
err
errC
<-
err
}
}
}(
errorChan
,
waiter
)
}(
errorChan
,
waiter
)
...
...
Write
Preview
Markdown
is supported
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