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
ef62882f
Unverified
Commit
ef62882f
authored
Sep 10, 2018
by
k8s-ci-robot
Committed by
GitHub
Sep 10, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #68334 from BoCloud/master
Apply user configurations for local etcd
parents
25cbd1c7
089a6584
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
manifests.go
cmd/kubeadm/app/phases/controlplane/manifests.go
+7
-0
No files found.
cmd/kubeadm/app/phases/controlplane/manifests.go
View file @
ef62882f
...
...
@@ -184,6 +184,13 @@ func getAPIServerCommand(cfg *kubeadmapi.InitConfiguration) []string {
defaultArguments
[
"etcd-cafile"
]
=
filepath
.
Join
(
cfg
.
CertificatesDir
,
kubeadmconstants
.
EtcdCACertName
)
defaultArguments
[
"etcd-certfile"
]
=
filepath
.
Join
(
cfg
.
CertificatesDir
,
kubeadmconstants
.
APIServerEtcdClientCertName
)
defaultArguments
[
"etcd-keyfile"
]
=
filepath
.
Join
(
cfg
.
CertificatesDir
,
kubeadmconstants
.
APIServerEtcdClientKeyName
)
// Apply user configurations for local etcd
if
cfg
.
Etcd
.
Local
!=
nil
{
if
value
,
ok
:=
cfg
.
Etcd
.
Local
.
ExtraArgs
[
"listen-client-urls"
];
ok
{
defaultArguments
[
"etcd-servers"
]
=
value
}
}
}
if
features
.
Enabled
(
cfg
.
FeatureGates
,
features
.
HighAvailability
)
{
...
...
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