You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/zh/docs/tasks/access-application-cluster/access-cluster.md
+4-204Lines changed: 4 additions & 204 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -355,214 +355,14 @@ In each case, the credentials of the pod are used to communicate securely with t
355
355
<!--
356
356
## Accessing services running on the cluster
357
357
358
-
The previous section was about connecting the Kubernetes API server. This section is about
359
-
connecting to other services running on Kubernetes cluster. In Kubernetes, the
360
-
[nodes](/docs/admin/node), [pods](/docs/user-guide/pods) and [services](/docs/user-guide/services) all have
361
-
their own IPs. In many cases, the node IPs, pod IPs, and some service IPs on a cluster will not be
362
-
routable, so they will not be reachable from a machine outside the cluster,
363
-
such as your desktop machine.
358
+
The previous section describes how to connect to the Kubernetes API server. For information about connecting to other services running on a Kubernetes cluster, see [Access Cluster Services.](/docs/tasks/access-application-cluster/access-cluster/)
Typically, there are several services which are started on a cluster by kube-system. Get a list of these
446
-
with the `kubectl cluster-info` command:
447
-
-->
448
-
### 发现内建服务
449
-
450
-
通常来说,集群中会有 kube-system 创建的一些运行的服务。
451
-
452
-
通过 `kubectl cluster-info` 命令获得这些服务列表:
453
-
454
-
```shell
455
-
kubectl cluster-info
456
-
```
457
-
458
-
```
459
-
Kubernetes master is running at https://104.197.5.247
460
-
elasticsearch-logging is running at https://104.197.5.247/api/v1/namespaces/kube-system/services/elasticsearch-logging/proxy
461
-
kibana-logging is running at https://104.197.5.247/api/v1/namespaces/kube-system/services/kibana-logging/proxy
462
-
kube-dns is running at https://104.197.5.247/api/v1/namespaces/kube-system/services/kube-dns/proxy
463
-
grafana is running at https://104.197.5.247/api/v1/namespaces/kube-system/services/monitoring-grafana/proxy
464
-
heapster is running at https://104.197.5.247/api/v1/namespaces/kube-system/services/monitoring-heapster/proxy
465
-
```
466
-
467
-
<!--
468
-
This shows the proxy-verb URL for accessing each service.
469
-
For example, this cluster has cluster-level logging enabled (using Elasticsearch), which can be reached
470
-
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:
(参阅[使用 Kubernetes API 访问集群](/zh/docs/tasks/administer-cluster/access-cluster-api/)
481
-
了解如何传递凭据,或者使用 kubectl proxy)
482
-
<!--
483
-
#### Manually constructing apiserver proxy URLs
484
-
485
-
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 append to the service's proxy URL:
If you haven't specified a name for your port, you don't have to specify *port_name* in the URL. You can also use the port number in place of the *port_name* for both named and unnamed ports.
489
-
490
-
By default, the API server proxies to your service using http. To use https, prefix the service name with `https:`:
* To access the Elasticsearch service endpoint `_search?q=user:kimchy`, you would use: `http://104.197.5.247/api/v1/namespaces/kube-system/services/elasticsearch-logging/proxy/_search?q=user:kimchy`
524
-
* To access the Elasticsearch cluster health information `_cluster/health?pretty=true`, you would use: `https://104.197.5.247/api/v1/namespaces/kube-system/services/elasticsearch-logging/proxy/_cluster/health?pretty=true`
0 commit comments