Update create-cluster-kubeadm.md (#6308)

Fix format.
reviewable/pr5867/r1
Stewart-YU 2017-11-14 13:37:49 -06:00 committed by Steve Perry
parent a20bf030a2
commit 71e634f75d
1 changed files with 3 additions and 4 deletions

View File

@ -182,9 +182,9 @@ as root:
```
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
sudo chown $(id -u):$(id -g) $HOME/.kube/config
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
```
Alternatively, if you are the root user, you could run this:
```
@ -226,7 +226,6 @@ kubectl apply -f <add-on.yaml>
**NOTE:** You can install **only one** pod network per cluster.
{% capture choose %}
Please select one of the tabs to see installation instructions for the respective third-party Pod Network Provider.
{% endcapture %}