Documentation ¶
Index ¶
- func EnsureAllAddons(cfg *kubeadmapi.InitConfiguration, client clientset.Interface) error
- func NewCertsPhase() workflow.Phase
- func NewCmdAddon() *cobra.Command
- func NewCmdBootstrapToken() *cobra.Command
- func NewCmdCerts() *cobra.Command
- func NewCmdControlplane() *cobra.Command
- func NewCmdEtcd() *cobra.Command
- func NewCmdKubeConfig(out io.Writer) *cobra.Command
- func NewCmdKubelet() *cobra.Command
- func NewCmdKubeletAnnotateCRI() *cobra.Command
- func NewCmdKubeletConfig() *cobra.Command
- func NewCmdKubeletConfigDownload() *cobra.Command
- func NewCmdKubeletConfigEnableDynamic() *cobra.Command
- func NewCmdKubeletConfigUpload() *cobra.Command
- func NewCmdMarkMaster() *cobra.Command
- func NewCmdPhase(out io.Writer) *cobra.Command
- func NewCmdPreFlight() *cobra.Command
- func NewCmdPreFlightNode(cfgPath *string, ignorePreflightErrors *[]string) *cobra.Command
- func NewCmdSelfhosting() *cobra.Command
- func NewCmdUploadConfig() *cobra.Command
- func NewCmdUserKubeConfig(out io.Writer, outDir, defaultKubernetesVersion string) *cobra.Command
- func NewKubeConfigFilePhase(kubeConfigFileName string) workflow.Phase
- func NewKubeConfigPhase() workflow.Phase
- func NewKubeletStartPhase() workflow.Phase
- func NewPreflightMasterPhase() workflow.Phase
- func NewSubCmdBootstrapToken(kubeConfigFile *string) *cobra.Command
- func NewSubCmdBootstrapTokenAll(kubeConfigFile *string) *cobra.Command
- func NewSubCmdClusterInfo(kubeConfigFile *string) *cobra.Command
- func NewSubCmdNodeBootstrapToken(kubeConfigFile *string) *cobra.Command
- func NewSubCmdNodeBootstrapTokenAutoApprove(kubeConfigFile *string) *cobra.Command
- func NewSubCmdNodeBootstrapTokenPostCSRs(kubeConfigFile *string) *cobra.Command
- func SetKubernetesVersion(cfg *kubeadmapiv1beta1.InitConfiguration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureAllAddons ¶ added in v1.8.0
func EnsureAllAddons(cfg *kubeadmapi.InitConfiguration, client clientset.Interface) error
EnsureAllAddons installs all addons to a Kubernetes cluster
func NewCertsPhase ¶ added in v1.13.0
NewCertsPhase returns the phase for the certs
func NewCmdAddon ¶ added in v1.8.0
NewCmdAddon returns the addon Cobra command
func NewCmdBootstrapToken ¶ added in v1.8.0
NewCmdBootstrapToken returns the Cobra command for running the mark-master phase
func NewCmdCerts ¶
NewCmdCerts returns main command for certs phase
func NewCmdControlplane ¶ added in v1.8.0
NewCmdControlplane returns main command for Controlplane phase
func NewCmdEtcd ¶ added in v1.8.0
NewCmdEtcd returns main command for Etcd phase
func NewCmdKubeConfig ¶
NewCmdKubeConfig returns main command for kubeconfig phase
func NewCmdKubelet ¶ added in v1.11.0
NewCmdKubelet returns command for `kubeadm phase kubelet`
func NewCmdKubeletAnnotateCRI ¶ added in v1.12.0
NewCmdKubeletAnnotateCRI calls cobra.Command for annotating the node with the given crisocket
func NewCmdKubeletConfig ¶ added in v1.11.0
NewCmdKubeletConfig returns command for `kubeadm phase kubelet config`
func NewCmdKubeletConfigDownload ¶ added in v1.11.0
NewCmdKubeletConfigDownload calls cobra.Command for downloading the kubelet configuration from the kubelet-config-1.X ConfigMap in the cluster
func NewCmdKubeletConfigEnableDynamic ¶ added in v1.11.0
NewCmdKubeletConfigEnableDynamic calls cobra.Command for enabling dynamic kubelet configuration on node This feature is still in alpha and an experimental state
func NewCmdKubeletConfigUpload ¶ added in v1.11.0
NewCmdKubeletConfigUpload calls cobra.Command for uploading dynamic kubelet configuration
func NewCmdMarkMaster ¶ added in v1.8.0
NewCmdMarkMaster returns the Cobra command for running the mark-master phase
func NewCmdPhase ¶
NewCmdPhase returns the cobra command for the "kubeadm phase" command (currently alpha-gated)
func NewCmdPreFlight ¶ added in v1.8.0
NewCmdPreFlight calls cobra.Command for preflight checks
func NewCmdPreFlightNode ¶ added in v1.8.0
NewCmdPreFlightNode calls cobra.Command for node preflight checks
func NewCmdSelfhosting ¶ added in v1.8.0
NewCmdSelfhosting returns the self-hosting Cobra command
func NewCmdUploadConfig ¶ added in v1.8.0
NewCmdUploadConfig returns the Cobra command for running the uploadconfig phase
func NewCmdUserKubeConfig ¶
NewCmdUserKubeConfig returns sub commands for kubeconfig phase
func NewKubeConfigFilePhase ¶ added in v1.13.0
NewKubeConfigFilePhase creates a kubeadm workflow phase that creates a kubeconfig file.
func NewKubeConfigPhase ¶ added in v1.13.0
NewKubeConfigPhase creates a kubeadm workflow phase that creates all kubeconfig files necessary to establish the control plane and the admin kubeconfig file.
func NewKubeletStartPhase ¶ added in v1.13.0
NewKubeletStartPhase creates a kubeadm workflow phase that start kubelet on a node.
func NewPreflightMasterPhase ¶ added in v1.13.0
NewPreflightMasterPhase creates a kubeadm workflow phase that implements preflight checks for a new master node.
func NewSubCmdBootstrapToken ¶ added in v1.9.0
NewSubCmdBootstrapToken returns the Cobra command for running the create token phase
func NewSubCmdBootstrapTokenAll ¶ added in v1.9.0
NewSubCmdBootstrapTokenAll returns the Cobra command for running the token all sub-phase
func NewSubCmdClusterInfo ¶ added in v1.8.0
NewSubCmdClusterInfo returns the Cobra command for running the cluster-info sub-phase
func NewSubCmdNodeBootstrapToken ¶ added in v1.8.0
NewSubCmdNodeBootstrapToken returns the Cobra command for running the node sub-phase
func NewSubCmdNodeBootstrapTokenAutoApprove ¶ added in v1.8.0
NewSubCmdNodeBootstrapTokenAutoApprove returns the Cobra command for running the allow-auto-approve sub-phase
func NewSubCmdNodeBootstrapTokenPostCSRs ¶ added in v1.8.0
NewSubCmdNodeBootstrapTokenPostCSRs returns the Cobra command for running the allow-post-csrs sub-phase
func SetKubernetesVersion ¶ added in v1.12.0
func SetKubernetesVersion(cfg *kubeadmapiv1beta1.InitConfiguration)
SetKubernetesVersion gets the current Kubeadm version and sets it as KubeadmVersion in the config, unless it's already set to a value different from the default.
Types ¶
This section is empty.