How to use a static public IP address and DNS label when creating new aks cluster in bicep template?

huangapple go评论49阅读模式
英文:

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.

How to use a static public IP address and DNS label when creating new aks cluster in bicep template?

Here's a detailed guide on doing your exact IP and DNS scenario : https://learn.microsoft.com/en-us/azure/aks/static-ip

huangapple
  • 本文由 发表于 2023年5月22日 16:16:43
  • 转载请务必保留本文链接:https://go.coder-hub.com/76304232.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定