Commit b9f98f41 authored by Zach Loafman's avatar Zach Loafman

Merge pull request #10584 from afein/patch-2

Change factory name to client.NewInCluster
parents ceaddc0c d5035a15
...@@ -113,7 +113,7 @@ From within a pod the recommended ways to connect to API are: ...@@ -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 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 any container of the pod can access it. See this [example of using kubectl proxy
in a pod](../examples/kubectl-container/). 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. This handles locating and authenticating to the apiserver.
In each case, the credentials of the pod are used to communicate securely with the apiserver. In each case, the credentials of the pod are used to communicate securely with the apiserver.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment