Skip to content

Commit d159ae3

Browse files
authored
Merge pull request kubernetes#94353 from hs0210/work
Improve the prompt message when kubeadm init is successful
2 parents e23d83e + 2be66fe commit d159ae3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/kubeadm/app/cmd/init.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ var (
5656
sudo cp -i {{.KubeConfigPath}} $HOME/.kube/config
5757
sudo chown $(id -u):$(id -g) $HOME/.kube/config
5858
59+
Alternatively, if you are the root user, you can run:
60+
61+
export KUBECONFIG=/etc/kubernetes/admin.conf
62+
5963
You should now deploy a pod network to the cluster.
6064
Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at:
6165
https://kubernetes.io/docs/concepts/cluster-administration/addons/

0 commit comments

Comments
 (0)