Use the format of kubeadm init

This commit is contained in:
Ming Zhao
2017-10-22 22:59:34 -07:00
committed by zacharysarah
parent 2484aae75d
commit d6087c50c4
@@ -178,7 +178,7 @@ as root:
kubeadm join --token <token> <master-ip>:<master-port> --discovery-token-ca-cert-hash sha256:<hash>
```
To make kubectl work for your non-root user, you might want to run these commands (which is also a part of the kubeadm init output):
To make kubectl work for your non-root user, you might want to run these commands (which is also a part of the `kubeadm init` output):
```
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config