【问题标题】:GKE Cluster - Understanding 'EndPoint'?GKE 集群 - 了解“端点”?
【发布时间】:2020-02-02 16:19:08
【问题描述】:

我创建了一个 GKE 集群。我对我的集群做了如下描述:

gcloud container clusters describe dev-gke --region=us-east4 | grep 35.245.72.197

输出如下:

endpoint: 35.245.72.197
  publicEndpoint: 35.245.72.197

作为 GCP 的新手,如果老手能帮我理解一下,这个公共端点是干什么用的?

【问题讨论】:

    标签: google-cloud-platform google-kubernetes-engine gke-networking


    【解决方案1】:

    publicEndpoint 是该集群主端点的外部 IP 地址。主端点是 Kubernetes 主节点的 IP 地址。

    注意:获取公共端点的正确(更好)命令:

    gcloud container clusters describe [CLUSTER-NAME] \
        --zone=[ZONE] | --region=[REGION] \
        --format="get(privateClusterConfig.publicEndpoint)"
    

    【讨论】:

    • 很高兴知道这一点。我确实有一些后续问题: - 我如何使用这个公共端点访问我的主节点?我在 UI 中看不到任何内容。 - 如果我禁用公共端点怎么办?
    • @Sunil - Stackoverflow 不是一个讨论论坛。发布一个问题,选择并检查好的答案,发布一个新问题,获得更多答案。
    【解决方案2】:

    正如约翰所说的其他问题,请打开一个新线程。

    主节点由 GKE 直接管理。

    https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture#master

    您可以在此处找到有关设置私有集群的更多信息:

    https://cloud.google.com/kubernetes-engine/docs/how-to/private-clusters

    https://cloud.google.com/kubernetes-engine/docs/how-to/authorized-networks

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-12-04
      • 1970-01-01
      • 2020-03-19
      • 2014-04-21
      • 2019-12-01
      • 2019-08-10
      • 2021-12-23
      相关资源
      最近更新 更多