Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple port for container app (#24332) #24459

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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