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
77703b90
Commit
77703b90
authored
Nov 14, 2019
by
Darren Shepherd
Committed by
Craig Jellick
Nov 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't ever change 10252/10251 ports
Kubernetes componentstatus check is hardcoded to 10252 and 10251 so we should never change these ports. If you do componentstatus will return error.
parent
37b0abac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
server.go
pkg/daemons/control/server.go
+0
-8
No files found.
pkg/daemons/control/server.go
View file @
77703b90
...
...
@@ -126,10 +126,6 @@ func controllerManager(cfg *config.Control, runtime *config.ControlRuntime) {
"cluster-signing-cert-file"
:
runtime
.
ServerCA
,
"cluster-signing-key-file"
:
runtime
.
ServerCAKey
,
}
offset
:=
cfg
.
HTTPSPort
-
6443
if
offset
>
0
{
argsMap
[
"port"
]
=
strconv
.
Itoa
(
10252
+
offset
)
}
if
cfg
.
NoLeaderElect
{
argsMap
[
"leader-elect"
]
=
"false"
}
...
...
@@ -152,10 +148,6 @@ func scheduler(cfg *config.Control, runtime *config.ControlRuntime) {
"bind-address"
:
"127.0.0.1"
,
"secure-port"
:
"0"
,
}
offset
:=
cfg
.
HTTPSPort
-
6443
if
offset
>
0
{
argsMap
[
"port"
]
=
strconv
.
Itoa
(
10251
+
offset
)
}
if
cfg
.
NoLeaderElect
{
argsMap
[
"leader-elect"
]
=
"false"
}
...
...
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