package phases

import "k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases"

Index

Functions

func EnsureAllAddons

func EnsureAllAddons(cfg *kubeadmapi.InitConfiguration, client clientset.Interface) error

EnsureAllAddons installs all addons to a Kubernetes cluster

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 NewCmdControlplane

func NewCmdControlplane() *cobra.Command

NewCmdControlplane returns main command for Controlplane 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 NewCmdKubeletConfigWriteToDisk

func NewCmdKubeletConfigWriteToDisk() *cobra.Command

NewCmdKubeletConfigWriteToDisk calls cobra.Command for writing init kubelet configuration

func NewCmdKubeletWriteEnvFile

func NewCmdKubeletWriteEnvFile() *cobra.Command

NewCmdKubeletWriteEnvFile calls cobra.Command for writing the dynamic kubelet env file based on a InitConfiguration or JoinConfiguration object

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 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 RunKubeletWriteEnvFile

func RunKubeletWriteEnvFile(cfgPath string) error

RunKubeletWriteEnvFile is the function that is run when "kubeadm phase kubelet write-env-file" is executed

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.

Source Files

addons.go bootstraptoken.go certs.go controlplane.go etcd.go kubeconfig.go kubelet.go markmaster.go phase.go preflight.go selfhosting.go uploadconfig.go util.go

Directories

PathSynopsis
cmd/kubeadm/app/cmd/phases/certs
cmd/kubeadm/app/cmd/phases/workflowPackage workflow implements a workflow manager to be used for implementing composable kubeadm workflows.
Version
v1.13.0-alpha.2
Published
Oct 24, 2018
Platform
linux/amd64
Imports
47 packages
Last checked
2 minutes ago

Tools for package owners.