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
b1fb289f
Unverified
Commit
b1fb289f
authored
Aug 26, 2017
by
Lucas Käldström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kubeadm: Move the uploadconfig phase right in the beginning of cluster init
parent
a235ba4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
init.go
cmd/kubeadm/app/cmd/init.go
+7
-5
No files found.
cmd/kubeadm/app/cmd/init.go
View file @
b1fb289f
...
...
@@ -327,6 +327,13 @@ func (i *Init) Run(out io.Writer) error {
return
err
}
// Upload currently used configuration to the cluster
// Note: This is done right in the beginning of cluster initialization; as we might want to make other phases
// depend on centralized information from this source in the future
if
err
:=
uploadconfigphase
.
UploadConfiguration
(
i
.
cfg
,
client
);
err
!=
nil
{
return
err
}
// PHASE 4: Mark the master with the right label/taint
if
err
:=
markmasterphase
.
MarkMaster
(
client
,
i
.
cfg
.
NodeName
);
err
!=
nil
{
return
err
...
...
@@ -361,11 +368,6 @@ func (i *Init) Run(out io.Writer) error {
// PHASE 6: Install and deploy all addons, and configure things as necessary
// Upload currently used configuration to the cluster
if
err
:=
uploadconfigphase
.
UploadConfiguration
(
i
.
cfg
,
client
);
err
!=
nil
{
return
err
}
if
err
:=
apiconfigphase
.
CreateRBACRules
(
client
,
k8sVersion
);
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