mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-08-03 08:59:37 +00:00
Set default kubeletPort
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
This commit is contained in:
committed by
Brad Davidson
parent
4e4b631b2e
commit
b1dfd884e2
@@ -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{})
|
||||
|
||||
Reference in New Issue
Block a user