Use KubeletPort reported in NodeStatus instead of cluster-wide master config, take 2.

This commit is contained in:
gmarek
2015-10-27 14:18:45 +01:00
parent 11c878e17c
commit 459131fd92
22 changed files with 191 additions and 104 deletions

View File

@@ -28,7 +28,6 @@ import (
"reflect"
gruntime "runtime"
"strings"
"time"
"github.com/golang/glog"
"k8s.io/kubernetes/pkg/api"
@@ -93,24 +92,6 @@ type Config struct {
Burst int
}
type KubeletConfig struct {
// ToDo: Add support for different kubelet instances exposing different ports
Port uint
EnableHttps bool
// TLSClientConfig contains settings to enable transport layer security
TLSClientConfig
// Server requires Bearer authentication
BearerToken string
// HTTPTimeout is used by the client to timeout http requests to Kubelet.
HTTPTimeout time.Duration
// Dial is a custom dialer used for the client
Dial func(net, addr string) (net.Conn, error)
}
// TLSClientConfig contains settings to enable transport layer security
type TLSClientConfig struct {
// Server requires TLS client certificate authentication