我们正在尝试使用 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/