mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
prompt user to use secure config in kubeadm
This commit is contained in:
parent
8631aa2eb2
commit
7b2253c867
@ -48,6 +48,9 @@ var (
|
|||||||
initDoneMsgf = dedent.Dedent(`
|
initDoneMsgf = dedent.Dedent(`
|
||||||
Your Kubernetes master has initialized successfully!
|
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.
|
You should now deploy a pod network to the cluster.
|
||||||
Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at:
|
Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at:
|
||||||
http://kubernetes.io/docs/admin/addons/
|
http://kubernetes.io/docs/admin/addons/
|
||||||
@ -267,7 +270,7 @@ func (i *Init) Run(out io.Writer) error {
|
|||||||
return err
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user