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
dd86a058
Commit
dd86a058
authored
Jun 13, 2024
by
Brad Davidson
Committed by
Brad Davidson
Jun 13, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix agent supervisor port using apiserver port instead
Signed-off-by:
Brad Davidson
<
brad.davidson@rancher.com
>
parent
7bd4fe1b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
config.go
pkg/agent/config/config.go
+1
-0
https.go
pkg/agent/https/https.go
+1
-1
types.go
pkg/daemons/config/types.go
+1
-0
No files found.
pkg/agent/config/config.go
View file @
dd86a058
...
...
@@ -546,6 +546,7 @@ func get(ctx context.Context, envInfo *cmds.Agent, proxy proxy.Proxy) (*config.N
FlannelExternalIP
:
controlConfig
.
FlannelExternalIP
,
EgressSelectorMode
:
controlConfig
.
EgressSelectorMode
,
ServerHTTPSPort
:
controlConfig
.
HTTPSPort
,
SupervisorPort
:
controlConfig
.
SupervisorPort
,
SupervisorMetrics
:
controlConfig
.
SupervisorMetrics
,
Token
:
info
.
String
(),
}
...
...
pkg/agent/https/https.go
View file @
dd86a058
...
...
@@ -36,7 +36,7 @@ func Start(ctx context.Context, nodeConfig *config.Node, runtime *config.Control
if
runtime
==
nil
{
// If we do not have an existing handler, set up a new listener
tcp
,
lerr
:=
util
.
ListenWithLoopback
(
ctx
,
nodeConfig
.
AgentConfig
.
ListenAddress
,
strconv
.
Itoa
(
nodeConfig
.
S
erverHTTPS
Port
))
tcp
,
lerr
:=
util
.
ListenWithLoopback
(
ctx
,
nodeConfig
.
AgentConfig
.
ListenAddress
,
strconv
.
Itoa
(
nodeConfig
.
S
upervisor
Port
))
if
lerr
!=
nil
{
err
=
lerr
return
...
...
pkg/daemons/config/types.go
View file @
dd86a058
...
...
@@ -59,6 +59,7 @@ type Node struct {
Token
string
Certificate
*
tls
.
Certificate
ServerHTTPSPort
int
SupervisorPort
int
DefaultRuntime
string
}
...
...
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