将ACI实例映射到Azure上的保留IP [英] Mapping an ACI-instance to a Reserved IP on Azure
问题描述
是否有关于连续部署到Azure容器实例以保留公共IP的最佳实践?还是将Azure保留IP映射到ACI在部署时绑定到的动态IP?
Are there any best practices on continuous deployment to an Azure Container Instance so that it keeps the public IP? Or mapping an Azure Reserved IP to a dynamic IP that the ACI gets bound to at deployment?
推荐答案
当前,最好的选择是为应用程序创建DNS A记录,并在创建新容器时将其重新映射到新IP。但是,我们正在努力使您能够简单地更新容器并保留IP。
Currently, your best bet is to create a DNS A record for the app and remap it to the new IP when you create a new container. However, we are working on enabling you to simply update the container and keep the IP.
更新:您现在可以为您在Microsoft管理的azurecontainer.io域中使用ACI cli中的 dns-name-label
开关访问您的ACI容器。您可以在更新过程中保持该DNS稳定。
Update: You can now request a DNS entry for your ACI container in the Microsoft-managed azurecontainer.io domain using the dns-name-label
switch in the az cli. You can keep this DNS stable across updates.
az container create -n helloworld --image microsoft/aci-helloworld /
-g myResourceGroup --dns-name-label mycontainer
这篇关于将ACI实例映射到Azure上的保留IP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!