mirror of
https://github.com/k3s-io/k3s.git
synced 2026-06-11 09:52:24 -04:00
Fix agent supervisor port using apiserver port instead
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
parent
9af17d2997
commit
b4d4ed8f01
3 changed files with 3 additions and 1 deletions
|
|
@ -545,6 +545,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(),
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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.ServerHTTPSPort))
|
||||
tcp, lerr := util.ListenWithLoopback(ctx, nodeConfig.AgentConfig.ListenAddress, strconv.Itoa(nodeConfig.SupervisorPort))
|
||||
if lerr != nil {
|
||||
err = lerr
|
||||
return
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ type Node struct {
|
|||
Token string
|
||||
Certificate *tls.Certificate
|
||||
ServerHTTPSPort int
|
||||
SupervisorPort int
|
||||
DefaultRuntime string
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue