Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prompt user to use secure config in kubeadm #41734

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion cmd/kubeadm/app/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down Expand Up @@ -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
}

Expand Down