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
59d131d6
Commit
59d131d6
authored
Feb 09, 2018
by
Ed Bartosh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove bootstrap kubelet config on reset
Made sure /etc/kubernetes/bootstrap-kubelet.conf is removed to ensure it will not be reused when joining the cluster next time.
parent
aee2cff1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
reset.go
cmd/kubeadm/app/cmd/reset.go
+1
-0
checks.go
cmd/kubeadm/app/preflight/checks.go
+1
-0
No files found.
cmd/kubeadm/app/cmd/reset.go
View file @
59d131d6
...
...
@@ -252,6 +252,7 @@ func resetConfigDir(configPathDir, pkiPathDir string) {
filesToClean
:=
[]
string
{
filepath
.
Join
(
configPathDir
,
kubeadmconstants
.
AdminKubeConfigFileName
),
filepath
.
Join
(
configPathDir
,
kubeadmconstants
.
KubeletKubeConfigFileName
),
filepath
.
Join
(
configPathDir
,
kubeadmconstants
.
KubeletBootstrapKubeConfigFileName
),
filepath
.
Join
(
configPathDir
,
kubeadmconstants
.
ControllerManagerKubeConfigFileName
),
filepath
.
Join
(
configPathDir
,
kubeadmconstants
.
SchedulerKubeConfigFileName
),
}
...
...
cmd/kubeadm/app/preflight/checks.go
View file @
59d131d6
...
...
@@ -975,6 +975,7 @@ func RunJoinNodeChecks(execer utilsexec.Interface, cfg *kubeadmapi.NodeConfigura
DirAvailableCheck
{
Path
:
filepath
.
Join
(
kubeadmconstants
.
KubernetesDir
,
kubeadmconstants
.
ManifestsSubDirName
)},
FileAvailableCheck
{
Path
:
cfg
.
CACertPath
},
FileAvailableCheck
{
Path
:
filepath
.
Join
(
kubeadmconstants
.
KubernetesDir
,
kubeadmconstants
.
KubeletKubeConfigFileName
)},
FileAvailableCheck
{
Path
:
filepath
.
Join
(
kubeadmconstants
.
KubernetesDir
,
kubeadmconstants
.
KubeletBootstrapKubeConfigFileName
)},
}
if
useCRI
{
checks
=
append
(
checks
,
CRICheck
{
socket
:
criSocket
,
exec
:
execer
})
...
...
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