diff --git a/cmd/kubeadm/app/cmd/init.go b/cmd/kubeadm/app/cmd/init.go index dadffef4392..dbbd088fb99 100644 --- a/cmd/kubeadm/app/cmd/init.go +++ b/cmd/kubeadm/app/cmd/init.go @@ -196,7 +196,7 @@ func NewInit(cfgPath string, cfg *kubeadmapi.MasterConfiguration, skipPreFlight, } fmt.Printf("[init] Using Kubernetes version: %s\n", cfg.KubernetesVersion) - fmt.Printf("[init] Using Authorization mode: %v\n", cfg.AuthorizationModes) + fmt.Printf("[init] Using Authorization modes: %v\n", cfg.AuthorizationModes) // Warn about the limitations with the current cloudprovider solution. if cfg.CloudProvider != "" { @@ -276,7 +276,7 @@ func (i *Init) Run(out io.Writer) error { // PHASE 5: Set up the node bootstrap tokens if !i.skipTokenPrint { - fmt.Printf("[token] Using token: %s\n", i.cfg.Token) + fmt.Printf("[bootstraptoken] Using token: %s\n", i.cfg.Token) } // Create the default node bootstrap token diff --git a/cmd/kubeadm/app/phases/controlplane/manifests.go b/cmd/kubeadm/app/phases/controlplane/manifests.go index 1e4920fb2b4..2aed9425716 100644 --- a/cmd/kubeadm/app/phases/controlplane/manifests.go +++ b/cmd/kubeadm/app/phases/controlplane/manifests.go @@ -126,6 +126,8 @@ func createStaticPodFiles(manifestDir string, cfg *kubeadmapi.MasterConfiguratio if err := staticpodutil.WriteStaticPodToDisk(componentName, manifestDir, spec); err != nil { return fmt.Errorf("failed to create static pod manifest file for %q: %v", componentName, err) } + + fmt.Printf("[controlplane] Wrote Static Pod manifest for component %s to %q\n", componentName, kubeadmconstants.GetStaticPodFilepath(componentName, manifestDir)) } return nil diff --git a/cmd/kubeadm/app/phases/etcd/local.go b/cmd/kubeadm/app/phases/etcd/local.go index 2645e00b92d..58fa56f9f7c 100644 --- a/cmd/kubeadm/app/phases/etcd/local.go +++ b/cmd/kubeadm/app/phases/etcd/local.go @@ -17,6 +17,8 @@ limitations under the License. package etcd import ( + "fmt" + "k8s.io/api/core/v1" kubeadmapi "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm" kubeadmconstants "k8s.io/kubernetes/cmd/kubeadm/app/constants" @@ -36,7 +38,12 @@ func CreateLocalEtcdStaticPodManifestFile(manifestDir string, cfg *kubeadmapi.Ma spec := GetEtcdPodSpec(cfg) // writes etcd StaticPod to disk - return staticpodutil.WriteStaticPodToDisk(kubeadmconstants.Etcd, manifestDir, spec) + if err := staticpodutil.WriteStaticPodToDisk(kubeadmconstants.Etcd, manifestDir, spec); err != nil { + return err + } + + fmt.Printf("[etcd] Wrote Static Pod manifest for a local etcd instance to %q\n", kubeadmconstants.GetStaticPodFilepath(kubeadmconstants.Etcd, manifestDir)) + return nil } // GetEtcdPodSpec returns the etcd static Pod actualized to the context of the current MasterConfiguration