mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Set default kubeletPort
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
parent
269563e4d2
commit
76729d813b
@ -32,6 +32,7 @@ import (
|
||||
"k8s.io/client-go/tools/cache"
|
||||
"k8s.io/client-go/tools/clientcmd"
|
||||
toolswatch "k8s.io/client-go/tools/watch"
|
||||
"k8s.io/kubernetes/pkg/cluster/ports"
|
||||
)
|
||||
|
||||
type agentTunnel struct {
|
||||
@ -80,6 +81,8 @@ func Setup(ctx context.Context, config *daemonconfig.Node, proxy proxy.Proxy) er
|
||||
cidrs: cidranger.NewPCTrieRanger(),
|
||||
ports: map[string]bool{},
|
||||
mode: config.EgressSelectorMode,
|
||||
|
||||
kubeletPort: fmt.Sprint(ports.KubeletPort),
|
||||
}
|
||||
|
||||
apiServerReady := make(chan struct{})
|
||||
|
Loading…
Reference in New Issue
Block a user