prompt user to use secure config in kubeadm

This commit is contained in:
xilabao 2017-02-20 15:01:40 +08:00
parent 8631aa2eb2
commit 7b2253c867

View File

@ -48,6 +48,9 @@ var (
initDoneMsgf = dedent.Dedent(`
Your Kubernetes master has initialized successfully!
To start using your cluster, you need to run:
export KUBECONFIG=%s
You should now deploy a pod network to the cluster.
Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at:
http://kubernetes.io/docs/admin/addons/
@ -267,7 +270,7 @@ func (i *Init) Run(out io.Writer) error {
return err
}
fmt.Fprintf(out, initDoneMsgf, generateJoinArgs(i.cfg))
fmt.Fprintf(out, initDoneMsgf, path.Join(kubeadmapi.GlobalEnvParams.KubernetesDir, kubeadmconstants.AdminKubeConfigFileName), generateJoinArgs(i.cfg))
return nil
}