Documentation
¶
Index ¶
- Variables
- func APIServer(ctx context.Context, args []string) error
- func APIServerHandlers(ctx context.Context) (authenticator.Request, http.Handler, error)
- func APIServerReadyChan() <-chan struct{}
- func Bootstrap(ctx context.Context, nodeConfig *daemonconfig.Node, cfg cmds.Agent) error
- func CNI(ctx context.Context, wg *sync.WaitGroup, config *daemonconfig.Node) error
- func CRI(ctx context.Context, config *daemonconfig.Node) error
- func CRIReadyChan() <-chan struct{}
- func CloseIfNilErr(err error, ch chan struct{}) error
- func CloudControllerManager(ctx context.Context, ccmRBACReady <-chan struct{}, args []string) error
- func Containerd(ctx context.Context, config *daemonconfig.Node) error
- func ControllerManager(ctx context.Context, args []string) error
- func Docker(ctx context.Context, config *daemonconfig.Node) error
- func ETCD(ctx context.Context, wg *sync.WaitGroup, args *ETCDConfig, extraArgs []string, ...) error
- func ETCDReadyChan() <-chan struct{}
- func IsSelfHosted() bool
- func KubeProxy(ctx context.Context, args []string) error
- func Kubelet(ctx context.Context, args []string) error
- func Prepare(ctx context.Context, nodeConfig *daemonconfig.Node, cfg cmds.Agent) error
- func Scheduler(ctx context.Context, nodeReady <-chan struct{}, args []string) error
- func Set(driver Executor)
- type ETCDConfig
- type ETCDSocketOpts
- type Executor
- type InitialOptions
- type PeerTrust
- type PreparingExecutor
- type ServerTrust
- type TestFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotInitialized = errors.New("executor not initialized")
)
Functions ¶
func APIServerHandlers ¶
func APIServerReadyChan ¶
func APIServerReadyChan() <-chan struct{}
func CRIReadyChan ¶
func CRIReadyChan() <-chan struct{}
func CloseIfNilErr ¶
func CloudControllerManager ¶
func Containerd ¶
func Containerd(ctx context.Context, config *daemonconfig.Node) error
func ETCDReadyChan ¶
func ETCDReadyChan() <-chan struct{}
func IsSelfHosted ¶
func IsSelfHosted() bool
Types ¶
type ETCDConfig ¶
type ETCDConfig struct {
InitialOptions `json:",inline"`
Name string `json:"name,omitempty"`
ListenClientURLs string `json:"listen-client-urls,omitempty"`
ListenClientHTTPURLs string `json:"listen-client-http-urls,omitempty"`
ListenMetricsURLs string `json:"listen-metrics-urls,omitempty"`
ListenPeerURLs string `json:"listen-peer-urls,omitempty"`
AdvertiseClientURLs string `json:"advertise-client-urls,omitempty"`
DataDir string `json:"data-dir,omitempty"`
SnapshotCount int `json:"snapshot-count,omitempty"`
ServerTrust ServerTrust `json:"client-transport-security"`
PeerTrust PeerTrust `json:"peer-transport-security"`
ForceNewCluster bool `json:"force-new-cluster,omitempty"`
HeartbeatInterval int `json:"heartbeat-interval"`
ElectionTimeout int `json:"election-timeout"`
Logger string `json:"logger"`
LogOutputs []string `json:"log-outputs"`
SocketOpts ETCDSocketOpts `json:"socket-options"`
ExperimentalInitialCorruptCheck bool `json:"experimental-initial-corrupt-check"`
ExperimentalWatchProgressNotifyInterval time.Duration `json:"experimental-watch-progress-notify-interval"`
}
func (ETCDConfig) ToConfigFile ¶
func (e ETCDConfig) ToConfigFile(extraArgs []string) (string, error)
type ETCDSocketOpts ¶
type Executor ¶
type Executor interface {
Bootstrap(ctx context.Context, nodeConfig *daemonconfig.Node, cfg cmds.Agent) error
Kubelet(ctx context.Context, args []string) error
KubeProxy(ctx context.Context, args []string) error
APIServerHandlers(ctx context.Context) (authenticator.Request, http.Handler, error)
APIServer(ctx context.Context, args []string) error
Scheduler(ctx context.Context, nodeReady <-chan struct{}, args []string) error
ControllerManager(ctx context.Context, args []string) error
CurrentETCDOptions() (InitialOptions, error)
ETCD(ctx context.Context, wg *sync.WaitGroup, args *ETCDConfig, extraArgs []string, test TestFunc) error
CloudControllerManager(ctx context.Context, ccmRBACReady <-chan struct{}, args []string) error
Containerd(ctx context.Context, node *daemonconfig.Node) error
Docker(ctx context.Context, node *daemonconfig.Node) error
CRI(ctx context.Context, node *daemonconfig.Node) error
CNI(ctx context.Context, wg *sync.WaitGroup, node *daemonconfig.Node) error
APIServerReadyChan() <-chan struct{}
ETCDReadyChan() <-chan struct{}
CRIReadyChan() <-chan struct{}
IsSelfHosted() bool
}
Executor is a set of functions for bootstrapping a node and starting the CRI, CNI, and Kubernetes components
type InitialOptions ¶
type InitialOptions struct {
AdvertisePeerURL string `json:"initial-advertise-peer-urls,omitempty"`
Cluster string `json:"initial-cluster,omitempty"`
State string `json:"initial-cluster-state,omitempty"`
}
func CurrentETCDOptions ¶
func CurrentETCDOptions() (InitialOptions, error)
type PreparingExecutor ¶
type PreparingExecutor interface {
Prepare(ctx context.Context, nodeConfig *daemonconfig.Node, cfg cmds.Agent) error
}
PreparingExecutor is an optional interface that Executors may implement to modify node configuration and CLI flags before config is retrieved from the server.
type ServerTrust ¶
Click to show internal directories.
Click to hide internal directories.