问题描述
我按照本教程 github repo 为 AKS 集群安装 AGIC。
作为文档,默认的 vnet 是 10.0.0.0/8,子网是 10.240.0.0/16。我不想使用 /8 和 /16,所以我将 vnet 更改为 /20,将子网更改为 /23。
运行此命令后,我看到了 k8s 集群,但没有应用网关。
@H_404_6@az aks create -n test-k8s -g "infra-k8s-test" --network-plugin azure --enable-managed-identity -a ingress-appgw --appgw-name test-appgw --appgw-subnet-cidr "10.0.12.0/23" --generate-ssh-keys --location southcentralus --service-cidr "10.0.4.0/23" --dns-service-ip 10.0.4.10 --vnet-subnet-id "/subscriptions/efxxxxc9/resourceGroups/infra-test-k8s/providers/Microsoft.Network/virtualNetworks/infra-k8s-test-vnet/subnets/infra-k8s-test-subnet"
@H_404_6@Waiting for AAD role to propagate[################################ ] 90.0000%Could not create a role assignment for virtual network:
subscriptions/efxxxxc9/resourceGroups/infra-k8s-test/providers/Microsoft.Network/virtualNetworks/infra-k8s-test-vnet specified in ingressApplicationGateway addon. Are you an Owner on this subscription?
我看到 Github 上有很多与使用 AKS 的自定义子网相关的问题。我们有针对此设置的解决方案吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)