Azure 容器实例 udp/tcp
Azure Container Instance udp/tcp
我尝试为 grafana 和 graphite 80 和 8125 公开两个端口。
当我尝试打开两个端口时收到错误消息:
"error": {
"code": "MixedProtocolsNotSupported",
"message": "Mixed protocols are found in container group 'test'. A container group can have either protocol TCP or UDP, but can't have both."
这是我的模板
"osType": "Linux",
"ipAddress": {
"type": "Public",
"ports": [
{
"protocol": "tcp",
"port": "80"
},
{
"protocol": "udp",
"port": "8125"
}
]
}
也许有人对此有解决方法?
截至今天,ACI 支持每个 IP 地址一个协议。要解决此问题,您可以为 TCP 部署一个单独的容器组,为 UDP 部署一个容器组。
我尝试为 grafana 和 graphite 80 和 8125 公开两个端口。 当我尝试打开两个端口时收到错误消息:
"error": {
"code": "MixedProtocolsNotSupported",
"message": "Mixed protocols are found in container group 'test'. A container group can have either protocol TCP or UDP, but can't have both."
这是我的模板
"osType": "Linux",
"ipAddress": {
"type": "Public",
"ports": [
{
"protocol": "tcp",
"port": "80"
},
{
"protocol": "udp",
"port": "8125"
}
]
}
也许有人对此有解决方法?
截至今天,ACI 支持每个 IP 地址一个协议。要解决此问题,您可以为 TCP 部署一个单独的容器组,为 UDP 部署一个容器组。