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
cca8e1ce
Commit
cca8e1ce
authored
Apr 17, 2018
by
Mike Danese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
self sign certs when ServerTLSBootstrap is disabled
parent
16c31670
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
server.go
cmd/kubelet/app/server.go
+1
-1
No files found.
cmd/kubelet/app/server.go
View file @
cca8e1ce
...
@@ -736,7 +736,7 @@ func getNodeName(cloud cloudprovider.Interface, hostname string) (types.NodeName
...
@@ -736,7 +736,7 @@ func getNodeName(cloud cloudprovider.Interface, hostname string) (types.NodeName
// InitializeTLS checks for a configured TLSCertFile and TLSPrivateKeyFile: if unspecified a new self-signed
// InitializeTLS checks for a configured TLSCertFile and TLSPrivateKeyFile: if unspecified a new self-signed
// certificate and key file are generated. Returns a configured server.TLSOptions object.
// certificate and key file are generated. Returns a configured server.TLSOptions object.
func
InitializeTLS
(
kf
*
options
.
KubeletFlags
,
kc
*
kubeletconfiginternal
.
KubeletConfiguration
)
(
*
server
.
TLSOptions
,
error
)
{
func
InitializeTLS
(
kf
*
options
.
KubeletFlags
,
kc
*
kubeletconfiginternal
.
KubeletConfiguration
)
(
*
server
.
TLSOptions
,
error
)
{
if
!
utilfeature
.
DefaultFeatureGate
.
Enabled
(
features
.
RotateKubeletServerCertificate
)
&&
kc
.
TLSCertFile
==
""
&&
kc
.
TLSPrivateKeyFile
==
""
{
if
!
kc
.
ServerTLSBootstrap
&&
kc
.
TLSCertFile
==
""
&&
kc
.
TLSPrivateKeyFile
==
""
{
kc
.
TLSCertFile
=
path
.
Join
(
kf
.
CertDirectory
,
"kubelet.crt"
)
kc
.
TLSCertFile
=
path
.
Join
(
kf
.
CertDirectory
,
"kubelet.crt"
)
kc
.
TLSPrivateKeyFile
=
path
.
Join
(
kf
.
CertDirectory
,
"kubelet.key"
)
kc
.
TLSPrivateKeyFile
=
path
.
Join
(
kf
.
CertDirectory
,
"kubelet.key"
)
...
...
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