cmd

package
v1.5.0-beta.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2016 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdInit

func NewCmdInit(out io.Writer) *cobra.Command

NewCmdInit returns "kubeadm init" command.

func NewCmdJoin

func NewCmdJoin(out io.Writer) *cobra.Command

NewCmdJoin returns "kubeadm join" command.

func NewCmdReset

func NewCmdReset(out io.Writer) *cobra.Command

NewCmdReset returns "kubeadm reset" command.

func NewCmdToken

func NewCmdToken(out io.Writer) *cobra.Command

func NewCmdTokenGenerate

func NewCmdTokenGenerate(out io.Writer) *cobra.Command

func NewCmdVersion

func NewCmdVersion(out io.Writer) *cobra.Command

func NewKubeadmCommand

func NewKubeadmCommand(f cmdutil.Factory, in io.Reader, out, err io.Writer) *cobra.Command

func RunGenerateToken

func RunGenerateToken(out io.Writer) error

func RunVersion

func RunVersion(out io.Writer, cmd *cobra.Command) error

Types

type Init

type Init struct {
	// contains filtered or unexported fields
}

func NewInit

func NewInit(cfgPath string, cfg *kubeadmapi.MasterConfiguration, skipPreFlight bool) (*Init, error)

func (*Init) Run

func (i *Init) Run(out io.Writer) error

Run executes master node provisioning, including certificates, needed static pod manifests, etc.

type Join

type Join struct {
	// contains filtered or unexported fields
}

func NewJoin

func NewJoin(cfgPath string, args []string, cfg *kubeadmapi.NodeConfiguration, skipPreFlight bool) (*Join, error)

func (*Join) Run

func (j *Join) Run(out io.Writer) error

Run executes worked node provisioning and tries to join an existing cluster.

type Reset

type Reset struct{}

func NewReset

func NewReset(skipPreFlight bool) (*Reset, error)

func (*Reset) Run

func (r *Reset) Run(out io.Writer) error

Run reverts any changes made to this host by "kubeadm init" or "kubeadm join".

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL