簡體   English   中英

VNET 中的 Azure 容器實例如何獲取 FQDN

[英]Azure Container Instance in VNET how to get a FQDN

在 VNET 中部署 ISNT 的容器實例時,我們可以指定 label “x”來獲取 FQDN,即http://x.uksouth.azurecontainer.io/

如果將容器部署到子網中,您似乎無法再指定 label。

我正在使用 Terraform https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources_group/

特別是“network_profile_id”:與 dns_name_label 沖突

在這種情況下,我假設您應該自己管理 DNS。

似乎沒有指定容器的私有 IP 嗎?

我很確定,如果您在 VNet 中部署 ACI,則不可能設置 static 私有 IP 地址。 您可以通過應用程序網關將 VNet 中的 ACI 暴露給外部,但是當 ACI 的 IP 地址發生變化時,它就無法工作了。 而且您無法控制 ACI IP 地址。

根據Azure 文檔

Public IP or DNS label - Container groups deployed to a virtual network don't currently support exposing containers directly to the internet with a public IP address or a fully qualified domain name

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM