amazon-web-services - 无法使用 kops 解决方案在同一 AWS VPC 和子网中创建具有 2 个 kubernetes 集群的 ELB

标签 amazon-web-services kubernetes kops

我们正在尝试使用 kops 解决方案 https://github.com/kubernetes/kops 测试是否可以在同一个 AWS VPC 和子网(公共(public)和私有(private))中拥有 2 个或更多 k8s 集群

我们构建集群没有问题,但是当我们尝试通过 ELB 公开服务时,它失败了。

如果我们修改子网标签KubernetesCluster到新的集群名称,ELB 被发布。

是否可以在同一子网中使用 kops 构建多个 k8s 集群?
KubernetesCluster标签支持多个集群?

提前致谢

最佳答案

请引用kops documentation on shared subnets :

If you run in AWS private topology with shared subnets, and you would like Kubernetes to provision resources in these shared subnets, you must create tags on them with Key=value KubernetesCluster=. This is important, for example, if your utility subnets are shared, you will not be able to launch any services that create Elastic Load Balancers (ELBs).



这意味着是的,如果您想要需要 ELB 的资源,则需要设置 KubernetesCluster 标签。

关于amazon-web-services - 无法使用 kops 解决方案在同一 AWS VPC 和子网中创建具有 2 个 kubernetes 集群的 ELB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46692377/

相关文章:

amazon-web-services - 恢复 Etcd Quorum

amazon-web-services - 如何将节点添加到我的 kops 集群? (这里的节点是我的外部实例)

java - 如何从 Java 中的 RESTful 服务进行 API 调用?

java - 使用 API 网关进行 Cognito 用户池身份验证和授权

node.js - 了解 Lambda 来调用 API

kubernetes - kubernetes 中服务的偶尔未知主机异常

amazon-web-services - dynamodb 中的哈希键和范围键是什么以及如何使用它们

kubernetes - 很多kubelet错误:无法更新容器的统计信息

kubernetes - 有状态集上的 Auto Scaling 持久存储

kubernetes - kubernetes中两个Pod之间的SSH连接