Merge pull request #5143 from stewart-yu/patch-33
Update access-cluster.md
This commit is contained in:
@@ -134,7 +134,7 @@ If the application is deployed as a Pod in the cluster, please refer to the [nex
|
|||||||
|
|
||||||
#### Python client
|
#### Python client
|
||||||
|
|
||||||
To use [Python client](https://github.com/kubernetes-incubator/client-python), run the following command: `pip install kubernetes` See [Python Client Library page](https://github.com/kubernetes-incubator/client-python) for more installation options.
|
To use [Python client](https://github.com/kubernetes-incubator/client-python), run the following command: `pip install kubernetes`. See [Python Client Library page](https://github.com/kubernetes-incubator/client-python) for more installation options.
|
||||||
|
|
||||||
The Python client can use the same [kubeconfig file](/docs/user-guide/kubeconfig-file)
|
The Python client can use the same [kubeconfig file](/docs/user-guide/kubeconfig-file)
|
||||||
as the kubectl CLI does to locate and authenticate to the apiserver. See this [example](https://github.com/kubernetes-incubator/client-python/tree/master/examples/example1.py).
|
as the kubectl CLI does to locate and authenticate to the apiserver. See this [example](https://github.com/kubernetes-incubator/client-python/tree/master/examples/example1.py).
|
||||||
@@ -235,7 +235,7 @@ $ kubectl cluster-info
|
|||||||
|
|
||||||
This shows the proxy-verb URL for accessing each service.
|
This shows the proxy-verb URL for accessing each service.
|
||||||
For example, this cluster has cluster-level logging enabled (using Elasticsearch), which can be reached
|
For example, this cluster has cluster-level logging enabled (using Elasticsearch), which can be reached
|
||||||
at `https://104.197.5.247/api/v1/namespaces/kube-system/services/elasticsearch-logging/proxy/` if suitable credentials are passed, or through a kubectl proxy at, for example:
|
at `https://104.197.5.247/api/v1/namespaces/kube-system/services/elasticsearch-logging/proxy/` if suitable credentials are passed. Logging can also be reached through a kubectl proxy, for example at:
|
||||||
`http://localhost:8080/api/v1/namespaces/kube-system/services/elasticsearch-logging/proxy/`.
|
`http://localhost:8080/api/v1/namespaces/kube-system/services/elasticsearch-logging/proxy/`.
|
||||||
(See [above](#accessing-the-cluster-api) for how to pass credentials or use kubectl proxy.)
|
(See [above](#accessing-the-cluster-api) for how to pass credentials or use kubectl proxy.)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user