diff --git a/pkg/agent/config/config.go b/pkg/agent/config/config.go index 7366a9924138..b7e2cfc67b56 100644 --- a/pkg/agent/config/config.go +++ b/pkg/agent/config/config.go @@ -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(), } diff --git a/pkg/agent/https/https.go b/pkg/agent/https/https.go index da453742b8a7..87dc8517e5c6 100644 --- a/pkg/agent/https/https.go +++ b/pkg/agent/https/https.go @@ -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 diff --git a/pkg/daemons/config/types.go b/pkg/daemons/config/types.go index e65ac7fde26b..33db100222a2 100644 --- a/pkg/daemons/config/types.go +++ b/pkg/daemons/config/types.go @@ -58,6 +58,7 @@ type Node struct { Token string Certificate *tls.Certificate ServerHTTPSPort int + SupervisorPort int DefaultRuntime string }