parent
							
								
									91be0526d3
								
							
						
					
					
						commit
						0bcb1cef76
					
				| 
						 | 
					@ -124,7 +124,7 @@ client libraries.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#### Go client
 | 
					#### Go client
 | 
				
			||||||
 | 
					
 | 
				
			||||||
* To get the library, run the following command: `go get k8s.io/client-go/<version number>/kubernetes` See [https://github.com/kubernetes/client-go](https://github.com/kubernetes/client-go) to see which versions are supported.
 | 
					* To get the library, run the following command: `go get k8s.io/client-go/<version number>/kubernetes`. See [https://github.com/kubernetes/client-go](https://github.com/kubernetes/client-go) to see which versions are supported.
 | 
				
			||||||
* Write an application atop of the client-go clients. Note that client-go defines its own API objects, so if needed, please import API definitions from client-go rather than from the main repository, e.g., `import "k8s.io/client-go/1.4/pkg/api/v1"` is correct.
 | 
					* Write an application atop of the client-go clients. Note that client-go defines its own API objects, so if needed, please import API definitions from client-go rather than from the main repository, e.g., `import "k8s.io/client-go/1.4/pkg/api/v1"` is correct.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The Go client can use the same [kubeconfig file](/docs/concepts/cluster-administration/authenticate-across-clusters-kubeconfig/)
 | 
					The Go client can use the same [kubeconfig file](/docs/concepts/cluster-administration/authenticate-across-clusters-kubeconfig/)
 | 
				
			||||||
| 
						 | 
					@ -154,7 +154,7 @@ the `kubernetes` DNS name, which resolves to a Service IP which in turn
 | 
				
			||||||
will be routed to an apiserver.
 | 
					will be routed to an apiserver.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
The recommended way to authenticate to the apiserver is with a
 | 
					The recommended way to authenticate to the apiserver is with a
 | 
				
			||||||
[service account](/docs/user-guide/service-accounts) credential.  By kube-system, a pod
 | 
					[service account](/docs/tasks/configure-pod-container/configure-service-account/) credential.  By kube-system, a pod
 | 
				
			||||||
is associated with a service account, and a credential (token) for that
 | 
					is associated with a service account, and a credential (token) for that
 | 
				
			||||||
service account is placed into the filesystem tree of each container in that pod,
 | 
					service account is placed into the filesystem tree of each container in that pod,
 | 
				
			||||||
at `/var/run/secrets/kubernetes.io/serviceaccount/token`.
 | 
					at `/var/run/secrets/kubernetes.io/serviceaccount/token`.
 | 
				
			||||||
| 
						 | 
					@ -244,7 +244,7 @@ at `https://104.197.5.247/api/v1/namespaces/kube-system/services/elasticsearch-l
 | 
				
			||||||
As mentioned above, you use the `kubectl cluster-info` command to retrieve the service's proxy URL. To create proxy URLs that include service endpoints, suffixes, and parameters, you simply append to the service's proxy URL:
 | 
					As mentioned above, you use the `kubectl cluster-info` command to retrieve the service's proxy URL. To create proxy URLs that include service endpoints, suffixes, and parameters, you simply append to the service's proxy URL:
 | 
				
			||||||
`http://`*`kubernetes_master_address`*`/api/v1/namespaces/`*`namespace_name`*`/services/`*`service_name[:port_name]`*`/proxy`
 | 
					`http://`*`kubernetes_master_address`*`/api/v1/namespaces/`*`namespace_name`*`/services/`*`service_name[:port_name]`*`/proxy`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
If you haven't specified a name for your port, you don't have to specify *port_name* in the URL
 | 
					If you haven't specified a name for your port, you don't have to specify *port_name* in the URL.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
##### Examples
 | 
					##### Examples
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue