phases

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 48 Imported by: 0

Documentation

Index

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 NewCertsPhase

func NewCertsPhase() workflow.Phase

NewCertsPhase returns the phase for the certs

func NewCmdAddon

func NewCmdAddon() *cobra.Command

NewCmdAddon returns the addon Cobra command

func NewCmdBootstrapToken

func NewCmdBootstrapToken() *cobra.Command

NewCmdBootstrapToken returns the Cobra command for running the mark-master phase

func NewCmdCerts

func NewCmdCerts() *cobra.Command

NewCmdCerts returns main command for certs phase

func NewCmdEtcd

func NewCmdEtcd() *cobra.Command

NewCmdEtcd returns main command for Etcd phase

func NewCmdKubeConfig

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

NewCmdKubeConfig returns main command for kubeconfig phase

func NewCmdKubelet

func NewCmdKubelet() *cobra.Command

NewCmdKubelet returns command for `kubeadm phase kubelet`

func NewCmdKubeletAnnotateCRI

func NewCmdKubeletAnnotateCRI() *cobra.Command

NewCmdKubeletAnnotateCRI calls cobra.Command for annotating the node with the given crisocket

func NewCmdKubeletConfig

func NewCmdKubeletConfig() *cobra.Command

NewCmdKubeletConfig returns command for `kubeadm phase kubelet config`

func NewCmdKubeletConfigDownload

func NewCmdKubeletConfigDownload() *cobra.Command

NewCmdKubeletConfigDownload calls cobra.Command for downloading the kubelet configuration from the kubelet-config-1.X ConfigMap in the cluster

func NewCmdKubeletConfigEnableDynamic

func NewCmdKubeletConfigEnableDynamic() *cobra.Command

NewCmdKubeletConfigEnableDynamic calls cobra.Command for enabling dynamic kubelet configuration on node This feature is still in alpha and an experimental state

func NewCmdKubeletConfigUpload

func NewCmdKubeletConfigUpload() *cobra.Command

NewCmdKubeletConfigUpload calls cobra.Command for uploading dynamic kubelet configuration

func NewCmdMarkMaster

func NewCmdMarkMaster() *cobra.Command

NewCmdMarkMaster returns the Cobra command for running the mark-master phase

func NewCmdPhase

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

NewCmdPhase returns the cobra command for the "kubeadm phase" command (currently alpha-gated)

func NewCmdPreFlight

func NewCmdPreFlight() *cobra.Command

NewCmdPreFlight calls cobra.Command for preflight checks

func NewCmdPreFlightNode

func NewCmdPreFlightNode(cfgPath *string, ignorePreflightErrors *[]string) *cobra.Command

NewCmdPreFlightNode calls cobra.Command for node preflight checks

func NewCmdSelfhosting

func NewCmdSelfhosting() *cobra.Command

NewCmdSelfhosting returns the self-hosting Cobra command

func NewCmdUploadConfig

func NewCmdUploadConfig() *cobra.Command

NewCmdUploadConfig returns the Cobra command for running the uploadconfig phase

func NewCmdUserKubeConfig

func NewCmdUserKubeConfig(out io.Writer, outDir, defaultKubernetesVersion string) *cobra.Command

NewCmdUserKubeConfig returns sub commands for kubeconfig phase

func NewControlPlanePhase

func NewControlPlanePhase() workflow.Phase

NewControlPlanePhase creates a kubeadm workflow phase that implements bootstrapping the control plane.

func NewKubeConfigFilePhase

func NewKubeConfigFilePhase(kubeConfigFileName string) workflow.Phase

NewKubeConfigFilePhase creates a kubeadm workflow phase that creates a kubeconfig file.

func NewKubeConfigPhase

func NewKubeConfigPhase() workflow.Phase

NewKubeConfigPhase creates a kubeadm workflow phase that creates all kubeconfig files necessary to establish the control plane and the admin kubeconfig file.

func NewKubeletStartPhase

func NewKubeletStartPhase() workflow.Phase

NewKubeletStartPhase creates a kubeadm workflow phase that start kubelet on a node.

func NewPreflightMasterPhase

func NewPreflightMasterPhase() workflow.Phase

NewPreflightMasterPhase creates a kubeadm workflow phase that implements preflight checks for a new master node.

func NewSubCmdBootstrapToken

func NewSubCmdBootstrapToken(kubeConfigFile *string) *cobra.Command

NewSubCmdBootstrapToken returns the Cobra command for running the create token phase

func NewSubCmdBootstrapTokenAll

func NewSubCmdBootstrapTokenAll(kubeConfigFile *string) *cobra.Command

NewSubCmdBootstrapTokenAll returns the Cobra command for running the token all sub-phase

func NewSubCmdClusterInfo

func NewSubCmdClusterInfo(kubeConfigFile *string) *cobra.Command

NewSubCmdClusterInfo returns the Cobra command for running the cluster-info sub-phase

func NewSubCmdNodeBootstrapToken

func NewSubCmdNodeBootstrapToken(kubeConfigFile *string) *cobra.Command

NewSubCmdNodeBootstrapToken returns the Cobra command for running the node sub-phase

func NewSubCmdNodeBootstrapTokenAutoApprove

func NewSubCmdNodeBootstrapTokenAutoApprove(kubeConfigFile *string) *cobra.Command

NewSubCmdNodeBootstrapTokenAutoApprove returns the Cobra command for running the allow-auto-approve sub-phase

func NewSubCmdNodeBootstrapTokenPostCSRs

func NewSubCmdNodeBootstrapTokenPostCSRs(kubeConfigFile *string) *cobra.Command

NewSubCmdNodeBootstrapTokenPostCSRs returns the Cobra command for running the allow-post-csrs sub-phase

func SetKubernetesVersion

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.

Directories

Path Synopsis
Package workflow implements a workflow manager to be used for implementing composable kubeadm workflows.
Package workflow implements a workflow manager to be used for implementing composable kubeadm workflows.

Jump to

Keyboard shortcuts

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