Merge pull request #761 from Malet/patch-1

Fix "Sharing Clusters" docs error
pull/883/head
Phillip Wittrock 2016-07-18 15:09:21 -07:00 committed by GitHub
commit 4417c4e9d3
1 changed files with 5 additions and 2 deletions

View File

@ -70,7 +70,10 @@ $ kubectl config set-credentials $USER_NICK \
--kubeconfig=/path/to/standalone/.kube/config
# create context entry
$ kubectl config set-context $CONTEXT_NAME --cluster=$CLUSTER_NICKNAME --user=$USER_NICK
$ kubectl config set-context $CONTEXT_NAME \
--cluster=$CLUSTER_NICK \
--user=$USER_NICK \
--kubeconfig=/path/to/standalone/.kube/config
```
Notes:
@ -116,4 +119,4 @@ $ scp host2:/path/to/home2/.kube/config /path/to/other/.kube/config
$ export $KUBECONFIG=/path/to/other/.kube/config
```
Detailed examples and explanation of `kubeconfig` loading/merging rules can be found in [kubeconfig-file](/docs/user-guide/kubeconfig-file).
Detailed examples and explanation of `kubeconfig` loading/merging rules can be found in [kubeconfig-file](/docs/user-guide/kubeconfig-file).