Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Updating the network and gateway resource
Browse files Browse the repository at this point in the history
  • Loading branch information
raunakpandya authored Dec 11, 2018
1 parent cdfa997 commit 74f82ae
Showing 1 changed file with 48 additions and 13 deletions.
61 changes: 48 additions & 13 deletions templates/todolist/mesh_rp.windows.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,12 @@
"replicaCount": "[parameters('frontEndReplicaCount')]",
"networkRefs": [
{
"name": "[resourceId('Microsoft.ServiceFabricMesh/networks', 'todolistappNetwork')]"
"name": "[resourceId('Microsoft.ServiceFabricMesh/networks', 'todolistappNetwork')]",
"endpointRefs": [
{
"name": "WebFrontEndListener"
}
]
}
]
}
Expand Down Expand Up @@ -185,7 +190,12 @@
"replicaCount": "[parameters('serviceReplicaCount')]",
"networkRefs": [
{
"name": "[resourceId('Microsoft.ServiceFabricMesh/networks', 'todolistappNetwork')]"
"name": "[resourceId('Microsoft.ServiceFabricMesh/networks', 'todolistappNetwork')]",
"endpointRefs": [
{
"name": "ToDoServiceListener"
}
]
}
]
}
Expand All @@ -201,20 +211,45 @@
"location": "[parameters('location')]",
"dependsOn": [],
"properties": {
"description": "todolistappNetwork description.",
"addressPrefix": "10.0.0.0/22",
"ingressConfig": {
"layer4": [
{
"name": "WebFrontEndIngress",
"publicPort": "20001",
"kind": "Local",
"description": "Service Fabric Mesh Network for ToDoListApp sample.",
"networkAddressPrefix": "10.0.0.0/24"
}
},
{
"apiVersion": "2018-09-01-preview",
"name": "todolistappGateway",
"type": "Microsoft.ServiceFabricMesh/gateways",
"location": "[parameters('location')]",
"dependsOn": [
"Microsoft.ServiceFabricMesh/networks/todolistappNetwork"
],
"properties": {
"description": "Service Fabric Mesh Gateway for ToDoListApp sample.",
"sourceNetwork": {
"name": "Open"
},
"destinationNetwork": {
"name": "[resourceId('Microsoft.ServiceFabricMesh/networks', 'todolistappNetwork')]"
},
"tcp": [
{
"name": "web",
"port": 80,
"destination": {
"applicationName": "todolistapp",
"serviceName": "WebFrontEnd",
"endpointName": "WebFrontEndListener"
}
]
}
}
]
}
}
]
}
],
"outputs": {
"publicIPAddress": {
"value": "[reference('todolistappGateway').ipAddress]",
"type": "string"
}
}
}

0 comments on commit 74f82ae

Please sign in to comment.