AK无法在单独的子网中创建新的子网新节点池

发布于 2025-02-13 08:12:32 字数 266 浏览 1 评论 0原文

我正在尝试使用此命令在新创建的子网中创建一个新的节点池,

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

半透明的墙 2025-02-20 08:12:32

我在环境中进行了测试,对我有效。您需要以这种格式提供-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.

enter image description here

enter image description here

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.

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文