AK无法在单独的子网中创建新的子网新节点池
我正在尝试使用此命令在新创建的子网中创建一个新的节点池,
az aks nodepool add \
--resource-group nems12 \
--cluster-name nems-cluster \
--name aksperfnode \
--node-count 1 \
--vnet-subnet-id aks2
但是获取错误代理池子网络不在vnet cidr
中为此
I am trying to create a new node pool in a newly created subnet with this command
az aks nodepool add \
--resource-group nems12 \
--cluster-name nems-cluster \
--name aksperfnode \
--node-count 1 \
--vnet-subnet-id aks2
But getting an error Agent pools subnet is not in Vnet CIDR
but it is actually added in vnet address space and a subnet is created for it
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在环境中进行了测试,对我有效。您需要以这种格式提供
-vnet-subnet-id
/subscriptions/B83C1EXXXXXXXXXXXXXXXXXXXXXX23F/RESOURCEGROUPS/V-RAXXXXXEE/VIRTUALNETWORK/VIRTUALNETWORKS/TESTVNETWNETS/TESTVNETS/subnets/subnets/subnets/aks-subnet
。注意:as andriy bilous 也请检查该建议,如果您在遵循我的解决方案后仍会遇到错误。
请检查分配给AKS节点池的子网是否不是委派子网。
选择NSG作为您现有子网的无。有时可能会导致错误。
I tested in my environment its working fine for me. You need to provide
--vnet-subnet-id
in this format/subscriptions/b83c1eXXXXX5ba-2bXXXXX23f/resourceGroups/v-raxXXXXee/providers/Microsoft.Network/virtualNetworks/TestVNET/subnets/AKS-Subnet
.Note : As Andriy Bilous also check that suggestion if you are still getting an error after followed my solution.
please check that the subnet assigned to the AKS node pool is not a delegated subnet.
Select NSG as None for your existing Subnet. Which might sometime cause error.