Skip to content

Commit

Permalink
Support multiple port for container app (#24332) (#24459)
Browse files Browse the repository at this point in the history
* Support multiple port for container app

* lint

* comment
  • Loading branch information
zhenqxuMSFT authored Jun 15, 2023
1 parent 721daae commit 6bb1e35
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,16 @@
"corsPolicy": {
"description": "CORS policy for container app",
"$ref": "#/definitions/CorsPolicy"
},
"additionalPortMappings": {
"description": "Settings to expose additional ports on container app",
"type": "array",
"items": {
"$ref": "#/definitions/IngressPortMapping"
},
"x-ms-identifiers": [
"targetPort"
]
}
}
},
Expand Down Expand Up @@ -1166,6 +1176,30 @@
}
}
},
"IngressPortMapping": {
"description": "Port mappings of container app ingress",
"type": "object",
"required": [
"external",
"targetPort"
],
"properties": {
"external": {
"description": "Specifies whether the app port is accessible outside of the environment",
"type": "boolean"
},
"targetPort": {
"format": "int32",
"description": "Specifies the port user's container listens on",
"type": "integer"
},
"exposedPort": {
"format": "int32",
"description": "Specifies the exposed port for the target port. If not specified, it defaults to target port",
"type": "integer"
}
}
},
"CustomHostnameAnalysisResult": {
"description": "Custom domain analysis.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,18 @@
],
"maxAge": 1234,
"allowCredentials": true
}
},
"additionalPortMappings": [
{
"external": true,
"targetPort": 1234
},
{
"external": false,
"targetPort": 2345,
"exposedPort": 3456
}
]
},
"dapr": {
"enabled": true,
Expand Down

0 comments on commit 6bb1e35

Please sign in to comment.