简体   繁体   English

无法通过AKS将多个子网关联到Kubernetes集群

[英]Not able to associate more than 1 subnet to Kubernetes cluster via AKS

When I create kubernetes cluster from kubernetes service of azure in the networking tab , I have the option to create my own virtual network. 在网络选项卡中从azure的kubernetes服务创建kubernetes集群时,可以选择创建自己的虚拟网络。

Let's say I created a virtual network with 3 subnets , still in the networking tab options , I can only associate 1 of these subnet to my cluster. 假设我创建了一个具有3个子网的虚拟网络,但仍在“网络”选项卡选项中,我只能将这些子网中的1个与我的集群关联。

Is it a restriction in AKS? 它是AKS中的限制吗?

If so, why it allows to create more than 1 subnet in virtual network? 如果可以,为什么它允许在虚拟网络中创建多个子网?

Not sure but you only can specific one subnet when you create an AKS cluster on the Azure portal. 不确定,但是在Azure门户上创建AKS群集时只能指定一个子网。 It seems a restriction in AKS. 似乎对AKS有限制。 Read the prerequisites . 阅读先决条件 At least, you need one subnet, one AKS cluster. 至少,您需要一个子网,一个AKS群集。 Also, AKS supports a single pool for now. 另外, AKS现在仅支持一个池

Don't create more than one AKS cluster in the same subnet. 在同一子网中不要创建多个AKS集群。

With advanced networking in AKS, you can deploy a AKS cluster in a existing virtual network and define these subnet names and IP address ranges. 借助AKS中的高级联网功能,您可以在现有的虚拟网络中部署AKS群集,并定义这些子网名称和IP地址范围。 IP addresses for the pods and the cluster's nodes are assigned from the specified subnet within the virtual network. 从虚拟网络中的指定子网分配Pod和群集节点的IP地址。 So you need to plan IP addressing for your cluster. 因此,您需要为群集计划IP地址。 You should consider doing upgrade and scaling operations when you determine the number of IP addresses. 确定IP地址数量时,应考虑进行升级和扩展操作。

The reason it allows to create more than 1 subnet in virtual network is that essentially you could create many subnets with valid CIDR block in a VNet. 它允许在虚拟网络中创建多个子网的原因是,从根本上讲,您可以在VNet中创建具有有效CIDR块的多个子网。 You can create VMs in other subnets or create a dedicated Gatewaysubnet used for VPN gateway in the existing VNet. 您可以在其他子网中创建VM,也可以在现有VNet中创建用于VPN网关的专用Gatewaysubnet。 With advanced networking, this existing virtual network often provides connectivity to an on-premises network using Azure ExpressRoute or Site-to-Site VPN. 通过高级网络,此现有虚拟网络通常使用Azure ExpressRoute或站点到站点VPN提供到本地网络的连接。

Also, it's welcome to give feedback on Azure AKS to improve this feature. 另外,也欢迎就Azure AKS 提供反馈以改进此功能。 Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Kubernetes的AKS:一旦通过Ubuntu上的azure-cli登录到集群,便无法连接到集群节点 - AKS using Kubernetes : not able to connect to cluster nodes once logged in to the cluster through azure-cli on Ubuntu AKS 无法在单独的子网中创建新的子网新节点池 - AKS not able to create new subnet new node pool in a seperate subnet 调整 Azure Kubernetes 服务 (AKS) 群集的大小 - Sizing Azure Kubernetes Services (AKS) Cluster 使用子网 ID 的引用创建 AKS 群集时出错 - Error when creating AKS cluster using a reference for the subnet ID 如何删除AKS引擎创建的kubernetes集群? - How to delete a kubernetes cluster created by AKS engine? 如何确定AKS kubernetes集群故障的原因 - How to determine the cause of an AKS kubernetes cluster failure 如何在 azure (AKS) 中的 Kube.netes 集群中附加磁盘 - How to attach a disk in Kubernetes cluster in azure (AKS) CrashLoopBackOff同时增加了针对MongoDB映像的Azure AKS群集上的副本数量超过1 - CrashLoopBackOff while increasing replicas count more than 1 on Azure AKS cluster for MongoDB image 无法通过头盔访问AKS上的Kubernetes LoadBalancer服务 - Kubernetes LoadBalancer service on AKS via helm is not accessible 通过AKS集群中的负载均衡器访问服务 - Accessing a service via a load balancer in an AKS cluster
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM