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
3c9c7fca
Unverified
Commit
3c9c7fca
authored
Mar 25, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Mar 25, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #75027 from ping035627/k8s-190306
Add some logs for kubeadm join
parents
231e372d
5a8174bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
kubelet.go
cmd/kubeadm/app/cmd/phases/join/kubelet.go
+3
-2
preflight.go
cmd/kubeadm/app/cmd/phases/join/preflight.go
+1
-1
No files found.
cmd/kubeadm/app/cmd/phases/join/kubelet.go
View file @
3c9c7fca
...
...
@@ -101,8 +101,8 @@ func runKubeletStartJoinPhase(c workflow.RunData) error {
}
bootstrapKubeConfigFile
:=
kubeadmconstants
.
GetBootstrapKubeletKubeConfigPath
()
// Write the bootstrap kubelet config file or the TLS-Boostrapped kubelet config file down to disk
klog
.
V
(
1
)
.
Info
ln
(
"[kubelet-start] writing bootstrap kubelet config file at
"
,
bootstrapKubeConfigFile
)
// Write the bootstrap kubelet config file or the TLS-Boo
t
strapped kubelet config file down to disk
klog
.
V
(
1
)
.
Info
f
(
"[kubelet-start] writing bootstrap kubelet config file at %s
"
,
bootstrapKubeConfigFile
)
if
err
:=
kubeconfigutil
.
WriteToDisk
(
bootstrapKubeConfigFile
,
tlsBootstrapCfg
);
err
!=
nil
{
return
errors
.
Wrap
(
err
,
"couldn't save bootstrap-kubelet.conf to disk"
)
}
...
...
@@ -110,6 +110,7 @@ func runKubeletStartJoinPhase(c workflow.RunData) error {
// Write the ca certificate to disk so kubelet can use it for authentication
cluster
:=
tlsBootstrapCfg
.
Contexts
[
tlsBootstrapCfg
.
CurrentContext
]
.
Cluster
if
_
,
err
:=
os
.
Stat
(
cfg
.
CACertPath
);
os
.
IsNotExist
(
err
)
{
klog
.
V
(
1
)
.
Infof
(
"[kubelet-start] writing CA certificate at %s"
,
cfg
.
CACertPath
)
if
err
:=
certutil
.
WriteCert
(
cfg
.
CACertPath
,
tlsBootstrapCfg
.
Clusters
[
cluster
]
.
CertificateAuthorityData
);
err
!=
nil
{
return
errors
.
Wrap
(
err
,
"couldn't save the CA certificate to disk"
)
}
...
...
cmd/kubeadm/app/cmd/phases/join/preflight.go
View file @
3c9c7fca
...
...
@@ -118,7 +118,7 @@ func runPreflight(c workflow.RunData) error {
return
errors
.
New
(
msg
.
String
())
}
// run kubeadm init preflight checks for checking all the prequisites
// run kubeadm init preflight checks for checking all the pre
re
quisites
fmt
.
Println
(
"[preflight] Running pre-flight checks before initializing the new control plane instance"
)
if
err
:=
preflight
.
RunInitNodeChecks
(
utilsexec
.
New
(),
initCfg
,
j
.
IgnorePreflightErrors
(),
true
);
err
!=
nil
{
return
err
...
...
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