Skip to content

Commit

Permalink
Change factory name to client.NewInCluster
Browse files Browse the repository at this point in the history
The factory that generates a client for use within the cluster is NewInCluster, rather than NewInContainer.
  • Loading branch information
Alexandros Mavrogiannis committed Jun 30, 2015
1 parent 2884446 commit d5035a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/accessing-the-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ From within a pod the recommended ways to connect to API are:
kubernetes API to the localhost interface of the pod, so that other processes
in any container of the pod can access it. See this [example of using kubectl proxy
in a pod](../examples/kubectl-container/).
- use the Go client library, and create a client using the `client.NewInContainer()` factory.
- use the Go client library, and create a client using the `client.NewInCluster()` factory.
This handles locating and authenticating to the apiserver.
In each case, the credentials of the pod are used to communicate securely with the apiserver.

Expand Down

0 comments on commit d5035a1

Please sign in to comment.