Documentation ¶
Index ¶
- func EnsureAllAddons(cfg *kubeadmapi.InitConfiguration, client clientset.Interface) error
- 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 NewCmdKubeletConfigWriteToDisk() *cobra.Command
- func NewCmdKubeletWriteEnvFile() *cobra.Command
- func NewCmdMarkMaster() *cobra.Command
- func NewCmdPhase(out io.Writer) *cobra.Command
- func NewCmdPreFlight() *cobra.Command
- func NewCmdPreFlightMaster(cfgPath *string, ignorePreflightErrors *[]string) *cobra.Command
- func NewCmdPreFlightNode(cfgPath *string, ignorePreflightErrors *[]string) *cobra.Command
- func NewCmdSelfhosting() *cobra.Command
- func NewCmdUploadConfig() *cobra.Command
- 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 RunKubeletWriteEnvFile(cfgPath string) error
- func SetKubernetesVersion(client clientset.Interface, cfg *kubeadmapiv1alpha3.InitConfiguration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureAllAddons ¶
func EnsureAllAddons(cfg *kubeadmapi.InitConfiguration, client clientset.Interface) error
EnsureAllAddons installs all addons to a Kubernetes cluster
func NewCmdBootstrapToken ¶
NewCmdBootstrapToken returns the Cobra command for running the mark-master phase
func NewCmdCerts ¶
NewCmdCerts returns main command for certs phase
func NewCmdControlplane ¶
NewCmdControlplane returns main command for Controlplane phase
func NewCmdKubeConfig ¶
NewCmdKubeConfig returns main command for kubeconfig phase
func NewCmdKubelet ¶
NewCmdKubelet returns command for `kubeadm phase kubelet`
func NewCmdKubeletAnnotateCRI ¶
NewCmdKubeletAnnotateCRI calls cobra.Command for annotating the node with the given crisocket
func NewCmdKubeletConfig ¶
NewCmdKubeletConfig returns command for `kubeadm phase kubelet config`
func NewCmdKubeletConfigDownload ¶
NewCmdKubeletConfigDownload calls cobra.Command for downloading the kubelet configuration from the kubelet-config-1.X ConfigMap in the cluster
func NewCmdKubeletConfigEnableDynamic ¶
NewCmdKubeletConfigEnableDynamic calls cobra.Command for enabling dynamic kubelet configuration on node This feature is still in alpha and an experimental state
func NewCmdKubeletConfigUpload ¶
NewCmdKubeletConfigUpload calls cobra.Command for uploading dynamic kubelet configuration
func NewCmdKubeletConfigWriteToDisk ¶
NewCmdKubeletConfigWriteToDisk calls cobra.Command for writing init kubelet configuration
func NewCmdKubeletWriteEnvFile ¶
NewCmdKubeletWriteEnvFile calls cobra.Command for writing the dynamic kubelet env file based on a InitConfiguration or JoinConfiguration object
func NewCmdMarkMaster ¶
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 ¶
NewCmdPreFlight calls cobra.Command for preflight checks
func NewCmdPreFlightMaster ¶
NewCmdPreFlightMaster calls cobra.Command for master preflight checks
func NewCmdPreFlightNode ¶
NewCmdPreFlightNode calls cobra.Command for node preflight checks
func NewCmdSelfhosting ¶
NewCmdSelfhosting returns the self-hosting Cobra command
func NewCmdUploadConfig ¶
NewCmdUploadConfig returns the Cobra command for running the uploadconfig phase
func NewSubCmdBootstrapToken ¶
NewSubCmdBootstrapToken returns the Cobra command for running the create token phase
func NewSubCmdBootstrapTokenAll ¶
NewSubCmdBootstrapTokenAll returns the Cobra command for running the token all sub-phase
func NewSubCmdClusterInfo ¶
NewSubCmdClusterInfo returns the Cobra command for running the cluster-info sub-phase
func NewSubCmdNodeBootstrapToken ¶
NewSubCmdNodeBootstrapToken returns the Cobra command for running the node sub-phase
func NewSubCmdNodeBootstrapTokenAutoApprove ¶
NewSubCmdNodeBootstrapTokenAutoApprove returns the Cobra command for running the allow-auto-approve sub-phase
func NewSubCmdNodeBootstrapTokenPostCSRs ¶
NewSubCmdNodeBootstrapTokenPostCSRs returns the Cobra command for running the allow-post-csrs sub-phase
func RunKubeletWriteEnvFile ¶
RunKubeletWriteEnvFile is the function that is run when "kubeadm phase kubelet write-env-file" is executed
func SetKubernetesVersion ¶
func SetKubernetesVersion(client clientset.Interface, cfg *kubeadmapiv1alpha3.InitConfiguration) error
SetKubernetesVersion gets current Kubeadm version and sets it as Kubernetes version of master configuration if not set.
Types ¶
This section is empty.