Update access-cluster.md
https://git.k8s.io/client-go/examples/examples/in-cluster/main.go is a bad url and it should be https://git.k8s.io/client-go/examples/examples/in-cluster-client-configuration/main.goreviewable/pr4604/r1
parent
3ee607a78e
commit
2c11c0de1f
|
@ -174,7 +174,7 @@ From within a pod the recommended ways to connect to API are:
|
|||
in any container of the pod can access it. See this [example of using kubectl proxy
|
||||
in a pod](https://github.com/kubernetes/kubernetes/tree/{{page.githubbranch}}/examples/kubectl-container/).
|
||||
- use the Go client library, and create a client using the `rest.InClusterConfig()` and `kubernetes.NewForConfig()` functions.
|
||||
They handle locating and authenticating to the apiserver. [example](https://git.k8s.io/client-go/examples/in-cluster/main.go)
|
||||
They handle locating and authenticating to the apiserver. [example](https://git.k8s.io/client-go/examples/in-cluster-client-configuration/main.go)
|
||||
|
||||
In each case, the credentials of the pod are used to communicate securely with the apiserver.
|
||||
|
||||
|
|
Loading…
Reference in New Issue