【发布时间】:2019-11-27 12:37:53
【问题描述】:
按照https://cloud.google.com/nat/docs/gke-example 的示例,我收到了许多警告。我可以摆脱所有这些,除了:
警告:Pod 地址范围限制了集群的最大大小。请参考https://cloud.google.com/kubernetes-engine/docs/how-to/flexible-pod-cidr 了解如何优化 IP 地址分配。 这将为节点启用自动修复功能。有关节点自动修复的更多信息,请参阅https://cloud.google.com/kubernetes-engine/docs/node-auto-repair。
查看 gcloud 集群创建的源代码,似乎如果设置了 enable_ip_alias 则会出现警告。如果未设置并且存在一个最大节点数,则还会出现警告。
if options.enable_ip_alias:
log.warning(
'The Pod address range limits the maximum size of the cluster. '
'Please refer to https://cloud.google.com/kubernetes-engine/docs/how-to/flexible-pod-cidr to learn how to optimize IP address allocation.'
)
我了解所提供的材料。如果我在 URL 中添加示例中的参数,警告不会消失。
这是我第一次使用 GKE,有人可以确认此警告并不表示实际问题。
【问题讨论】:
标签: google-cloud-platform google-kubernetes-engine