Documentation ¶
Index ¶
- type Bootstrapper
- func (k *Bootstrapper) DeleteCluster(k8s config.KubernetesConfig) error
- func (k *Bootstrapper) GenerateToken(cc config.ClusterConfig) (string, error)
- func (k *Bootstrapper) GetAPIServerStatus(hostname string, port int) (string, error)
- func (k *Bootstrapper) JoinCluster(cc config.ClusterConfig, n config.Node, joinCmd string) error
- func (k *Bootstrapper) LogCommands(cfg config.ClusterConfig, o bootstrapper.LogOptions) map[string]string
- func (k *Bootstrapper) SetupCerts(k8s config.KubernetesConfig, n config.Node) error
- func (k *Bootstrapper) StartCluster(cfg config.ClusterConfig) error
- func (k *Bootstrapper) UpdateCluster(cfg config.ClusterConfig) error
- func (k *Bootstrapper) UpdateNode(cfg config.ClusterConfig, n config.Node, r cruntime.Manager) error
- func (k *Bootstrapper) WaitForNode(cfg config.ClusterConfig, n config.Node, timeout time.Duration) (waitErr error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bootstrapper ¶ added in v1.0.0
type Bootstrapper struct {
// contains filtered or unexported fields
}
Bootstrapper is a bootstrapper using kubeadm
func NewBootstrapper ¶ added in v1.7.0
func NewBootstrapper(api libmachine.API, cc config.ClusterConfig, r command.Runner) (*Bootstrapper, error)
NewBootstrapper creates a new kubeadm.Bootstrapper
func (*Bootstrapper) DeleteCluster ¶ added in v1.0.0
func (k *Bootstrapper) DeleteCluster(k8s config.KubernetesConfig) error
DeleteCluster removes the components that were started earlier
func (*Bootstrapper) GenerateToken ¶ added in v1.9.0
func (k *Bootstrapper) GenerateToken(cc config.ClusterConfig) (string, error)
GenerateToken creates a token and returns the appropriate kubeadm join command to run
func (*Bootstrapper) GetAPIServerStatus ¶ added in v1.0.0
func (k *Bootstrapper) GetAPIServerStatus(hostname string, port int) (string, error)
GetAPIServerStatus returns the api-server status
func (*Bootstrapper) JoinCluster ¶ added in v1.9.0
func (k *Bootstrapper) JoinCluster(cc config.ClusterConfig, n config.Node, joinCmd string) error
JoinCluster adds a node to an existing cluster
func (*Bootstrapper) LogCommands ¶ added in v1.0.0
func (k *Bootstrapper) LogCommands(cfg config.ClusterConfig, o bootstrapper.LogOptions) map[string]string
LogCommands returns a map of log type to a command which will display that log.
func (*Bootstrapper) SetupCerts ¶ added in v1.0.0
func (k *Bootstrapper) SetupCerts(k8s config.KubernetesConfig, n config.Node) error
SetupCerts sets up certificates within the cluster.
func (*Bootstrapper) StartCluster ¶ added in v1.0.0
func (k *Bootstrapper) StartCluster(cfg config.ClusterConfig) error
StartCluster starts the cluster
func (*Bootstrapper) UpdateCluster ¶ added in v1.0.0
func (k *Bootstrapper) UpdateCluster(cfg config.ClusterConfig) error
UpdateCluster updates the cluster.
func (*Bootstrapper) UpdateNode ¶ added in v1.9.0
func (k *Bootstrapper) UpdateNode(cfg config.ClusterConfig, n config.Node, r cruntime.Manager) error
UpdateNode updates a node.
func (*Bootstrapper) WaitForNode ¶ added in v1.9.0
func (k *Bootstrapper) WaitForNode(cfg config.ClusterConfig, n config.Node, timeout time.Duration) (waitErr error)
WaitForNode blocks until the node appears to be healthy
Click to show internal directories.
Click to hide internal directories.