英文:
How to use a static public IP address and DNS label when creating new aks cluster in bicep template?
问题
我是新手使用Bicep,并创建了一个Bicep模板,用于部署新的托管AKS群集。它创建的对象之一是在第二个资源组中创建的公共IP地址(例如,“MC_test-aks-cluster_westeurope”)。
在Bicep模板中,当部署新的托管AKS群集时,如何引用使用静态公共IP地址和公共IP地址对象中的DNS标签(在第二个资源组“MC_test-aks-cluster_westeurope”中创建)?
我可以在现有的群集上使用门户添加它,或者创建一个新的公共IP地址对象,我已经按照这里的说明构建了新的群集1。但是,我希望在模板中添加以避免这一额外步骤。
英文:
I am new to bicep and have created a bicep template that deploys a new managed aks cluster. One of the objects that it creates is a public ip address in the second resource group (example "MC_test-aks-cluster_westeurope")
How can I reference in the bicep template to use static public IP address and DNS label in the public IP address object (created in the second resource group "MC_test-aks-cluster_westeurope") when a new managed aks cluster is deployed?
I can add it on an existing cluster using the portal or create a new public ip address object I have build the new cluster by following the instructions here. However I want to add in the template to avoid this additional step.
答案1
得分: 1
The MC_
resource group is managed by the Azure Kubernetes Service - you shouldn't typically be deploying resources to it. You should be putting your resources in your own resource group, and using Kubernetes Manifest annotations to point to the resources.
Here's a detailed guide on doing your exact IP and DNS scenario: https://learn.microsoft.com/en-us/azure/aks/static-ip
英文:
The MC_
resource group is managed by the Azure Kubernetes Service - you shouldn't typically be deploying resources to it. You should be putting your resources in your own resource group, and using Kubernetes Manifest annotations to point to the resources.
Here's a detailed guide on doing your exact IP and DNS scenario : https://learn.microsoft.com/en-us/azure/aks/static-ip
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论