package cmd
import "k8s.io/kubernetes/cmd/kubeadm/app/cmd"
Index ¶
- func NewCmdInit(out io.Writer) *cobra.Command
- func NewCmdJoin(out io.Writer) *cobra.Command
- func NewCmdReset(out io.Writer) *cobra.Command
- func NewCmdToken(out io.Writer) *cobra.Command
- func NewCmdTokenGenerate(out io.Writer) *cobra.Command
- func NewCmdVersion(out io.Writer) *cobra.Command
- func NewKubeadmCommand(f cmdutil.Factory, in io.Reader, out, err io.Writer) *cobra.Command
- func RunGenerateToken(out io.Writer) error
- func RunVersion(out io.Writer, cmd *cobra.Command) error
- type Init
- func NewInit(cfgPath string, cfg *kubeadmapi.MasterConfiguration, skipPreFlight bool) (*Init, error)
- func (i *Init) Run(out io.Writer) error
- type Join
- func NewJoin(cfgPath string, args []string, cfg *kubeadmapi.NodeConfiguration, skipPreFlight bool) (*Join, error)
- func (j *Join) Run(out io.Writer) error
- type Reset
Functions ¶
func NewCmdInit ¶
NewCmdInit returns "kubeadm init" command.
func NewCmdJoin ¶
NewCmdJoin returns "kubeadm join" command.
func NewCmdReset ¶
NewCmdReset returns "kubeadm reset" command.
func NewCmdToken ¶
func NewCmdTokenGenerate ¶
func NewCmdVersion ¶
func NewKubeadmCommand ¶
func RunGenerateToken ¶
func RunVersion ¶
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 ¶
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 ¶
Run executes worked node provisioning and tries to join an existing cluster.
type Reset ¶
type Reset struct{}
func NewReset ¶
func (*Reset) Run ¶
Run reverts any changes made to this host by "kubeadm init" or "kubeadm join".
Source Files ¶
cmd.go init.go join.go reset.go token.go version.go
- Version
- v1.5.7
- Published
- Apr 27, 2017
- Platform
- js/wasm
- Imports
- 26 packages
- Last checked
- 22 seconds ago –
Tools for package owners.