package cmd
import "k8s.io/kubernetes/cmd/kubeadm/app/cmd"
Index ¶
- func AddInitConfigFlags(flagSet *flag.FlagSet, cfg *kubeadmapiext.MasterConfiguration, featureGatesString *string)
- func AddInitOtherFlags(flagSet *flag.FlagSet, cfgPath *string, skipPreFlight, skipTokenPrint, dryRun *bool)
- func NewCmdCompletion(out io.Writer, boilerPlate string) *cobra.Command
- func NewCmdConfig(out io.Writer) *cobra.Command
- func NewCmdConfigUpload(out io.Writer, kubeConfigFile *string) *cobra.Command
- func NewCmdConfigUploadFromFile(out io.Writer, kubeConfigFile *string) *cobra.Command
- func NewCmdConfigUploadFromFlags(out io.Writer, kubeConfigFile *string) *cobra.Command
- func NewCmdConfigView(out io.Writer, kubeConfigFile *string) *cobra.Command
- 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, errW io.Writer) *cobra.Command
- func NewCmdTokenGenerate(out io.Writer) *cobra.Command
- func NewCmdVersion(out io.Writer) *cobra.Command
- func NewKubeadmCommand(_ io.Reader, out, err io.Writer) *cobra.Command
- func RunCompletion(out io.Writer, boilerPlate string, cmd *cobra.Command, args []string) error
- func RunConfigView(out io.Writer, client clientset.Interface) error
- func RunCreateToken(out io.Writer, client clientset.Interface, token string, tokenDuration time.Duration, usages []string, extraGroups []string, description string) error
- func RunDeleteToken(out io.Writer, client clientset.Interface, tokenIdOrToken string) error
- func RunGenerateToken(out io.Writer) error
- func RunListTokens(out io.Writer, errW io.Writer, client clientset.Interface) error
- func RunVersion(out io.Writer, cmd *cobra.Command) error
- type Init
- func NewInit(cfgPath string, cfg *kubeadmapi.MasterConfiguration, skipPreFlight, skipTokenPrint, dryRun bool) (*Init, error)
- func (i *Init) Run(out io.Writer) error
- func (i *Init) Validate(cmd *cobra.Command) error
- type Join
- func NewJoin(cfgPath string, args []string, cfg *kubeadmapi.NodeConfiguration, skipPreFlight bool) (*Join, error)
- func (j *Join) Run(out io.Writer) error
- func (j *Join) Validate(cmd *cobra.Command) error
- type Reset
- func NewReset(skipPreFlight bool, certsDir string) (*Reset, error)
- func (r *Reset) Run(out io.Writer) error
- type Version
Functions ¶
func AddInitConfigFlags ¶
func AddInitConfigFlags(flagSet *flag.FlagSet, cfg *kubeadmapiext.MasterConfiguration, featureGatesString *string)
AddInitConfigFlags adds init flags bound to the config to the specified flagset
func AddInitOtherFlags ¶
func AddInitOtherFlags(flagSet *flag.FlagSet, cfgPath *string, skipPreFlight, skipTokenPrint, dryRun *bool)
AddInitOtherFlags adds init flags that are not bound to a configuration file to the given flagset
func NewCmdCompletion ¶
func NewCmdConfig ¶
func NewCmdConfigUpload ¶
func NewCmdConfigUploadFromFile ¶
func NewCmdConfigUploadFromFlags ¶
func NewCmdConfigView ¶
func NewCmdInit ¶
NewCmdInit returns "kubeadm init" command.
func NewCmdJoin ¶
NewCmdJoin returns "kubeadm join" command.
func NewCmdReset ¶
NewCmdReset returns the "kubeadm reset" command
func NewCmdToken ¶
func NewCmdTokenGenerate ¶
func NewCmdVersion ¶
func NewKubeadmCommand ¶
func RunCompletion ¶
func RunConfigView ¶
RunConfigView gets the configuration persisted in the cluster
func RunCreateToken ¶
func RunCreateToken(out io.Writer, client clientset.Interface, token string, tokenDuration time.Duration, usages []string, extraGroups []string, description string) error
RunCreateToken generates a new bootstrap token and stores it as a secret on the server.
func RunDeleteToken ¶
RunDeleteToken removes a bootstrap token from the server.
func RunGenerateToken ¶
RunGenerateToken just generates a random token for the user
func RunListTokens ¶
RunListTokens lists details on all existing bootstrap tokens on the server.
func RunVersion ¶
Types ¶
type Init ¶
type Init struct {
// contains filtered or unexported fields
}
func NewInit ¶
func NewInit(cfgPath string, cfg *kubeadmapi.MasterConfiguration, skipPreFlight, skipTokenPrint, dryRun bool) (*Init, error)
func (*Init) Run ¶
Run executes master node provisioning, including certificates, needed static pod manifests, etc.
func (*Init) Validate ¶
Validate validates configuration passed to "kubeadm init"
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 worker node provisioning and tries to join an existing cluster.
func (*Join) Validate ¶
type Reset ¶
type Reset struct {
// contains filtered or unexported fields
}
func NewReset ¶
func (*Reset) Run ¶
Run reverts any changes made to this host by "kubeadm init" or "kubeadm join".
type Version ¶
type Version struct { ClientVersion *apimachineryversion.Info `json:"clientVersion"` }
Version provides the version information of kubeadm.
Source Files ¶
cmd.go completion.go config.go init.go join.go reset.go token.go version.go
Directories ¶
Path | Synopsis |
---|---|
cmd/kubeadm/app/cmd/phases | |
cmd/kubeadm/app/cmd/upgrade | |
cmd/kubeadm/app/cmd/util |
- Version
- v1.8.8
- Published
- Feb 4, 2018
- Platform
- js/wasm
- Imports
- 67 packages
- Last checked
- 22 minutes ago –
Tools for package owners.