google-cloud-platform - 我们可以打开端口以允许来自 GKE master 的流量吗?

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

GKE master 在 HA 模式下运行,并且 VM 在 VM 实例页面中也不可见。除了已经为 k8s API 打开的 443 之外,是否可以通过打开更多端口来允许 GKE master 上的流量。

最佳答案

GKE 是托管集群,您无法在主节点上执行修改。控制平面在 VM 实例中不可见,所有交互都必须使用 kubectl 进行。

The master is the unified endpoint for your cluster. All interactions with the cluster are done via Kubernetes API calls, and the master runs the Kubernetes API Server process to handle those requests. You can make Kubernetes API calls directly via HTTP/gRPC, or indirectly, by running commands from the Kubernetes command-line client (kubectl) or interacting with the UI in the Cloud Console.

事实上,我看不出有什么理由更改​​控制平面中的防火墙规则,因为您的所有工作负载(包括服务和入口)都将在节点池中运行。

引用资料:

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

关于google-cloud-platform - 我们可以打开端口以允许来自 GKE master 的流量吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62848367/

相关文章:

google-cloud-platform - GCP VM 未正确安装 nVidia 驱动程序

google-cloud-platform - 如何从谷歌云功能调用谷歌数据处理工作

google-kubernetes-engine - 在GKE中,我们可以通过PVC对象创建持久化卷的区域或区域吗?

python-3.x - 如何使用python删除GKE(Google Kubernetes Engine)集群?

docker - Kafka 无法与 Zookeeper 连接,错误为 "Timed out waiting for connection while in state: CONNECTING"

kubernetes - 用于 headless 服务的 GKE 内部 Ingress

docker - 使用 minikube 的 HostPath - Kubernetes

php - GCP with Composer 运行 PHP 失败,无法识别 'app'

kubernetes - 在配置私有(private) GKE 集群时了解 --master-ipv4-cidr

kubernetes - 如何配置 nginx 部署将流量传递到 Google Kubernetes Engine 中的前端部署?