зеркало из
1
0
Форкнуть 0

test template files for the demo

This commit is contained in:
Vipul Modi 2018-09-26 18:16:52 -07:00
Родитель c00c25b0ae
Коммит aa35219b23
2 изменённых файлов: 359 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,191 @@
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "string",
"defaultValue": "eastus",
"metadata": {
"description": "Location of the resources."
}
}
},
"resources": [
{
"apiVersion": "2018-07-01-preview",
"name": "fireworksNetwork",
"type": "Microsoft.ServiceFabricMesh/networks",
"location": "[parameters('location')]",
"dependsOn": [],
"properties": {
"addressPrefix": "10.0.0.4/22",
"ingressConfig": {
"layer4": [
{
"publicPort": "8080",
"applicationName": "fireworksApp",
"serviceName": "web",
"endpointName": "webListener"
}
]
}
}
},
{
"apiVersion": "2018-07-01-preview",
"name": "fireworksApp",
"type": "Microsoft.ServiceFabricMesh/applications",
"location": "[parameters('location')]",
"dependsOn": [
"Microsoft.ServiceFabricMesh/networks/fireworksNetwork"
],
"properties": {
"description": "Service Fabric Mesh Fireworks Demo App",
"services": [
{
"type": "Microsoft.ServiceFabricMesh/services",
"location": "[parameters('location')]",
"name": "web",
"properties": {
"description": "Service Fabric Mesh Fireworks Web Service.",
"osType": "linux",
"codePackages": [
{
"name": "code",
"image": "vipulmmsft/azure-mesh-fireworks-web:0.1-ignite-alpine",
"endpoints": [
{
"name": "webListener",
"port": "8080"
}
],
"environmentVariables": [
{
"name": "ASPNETCORE_URLS",
"value": "http://+:8080"
},
{
"name": "OBJECTCOUNTER_MAX_COUNT_OUTPUT_LIMIT",
"value": "500"
}
],
"resources": {
"requests": {
"cpu": "8",
"memoryInGB": "4"
}
}
}
],
"replicaCount": "1",
"networkRefs": [
{
"name": "[resourceId('Microsoft.ServiceFabricMesh/networks', 'fireworksNetwork')]"
}
]
}
},
{
"type": "Microsoft.ServiceFabricMesh/services",
"location": "[parameters('location')]",
"name": "worker1",
"properties": {
"description": "Service Fabric Mesh Fireworks Worker Service.",
"osType": "linux",
"codePackages": [
{
"name": "code",
"image": "vipulmmsft/azure-mesh-fireworks-worker-v1:0.4-strech",
"environmentVariables": [
{
"name": "OBJECT_TYPE",
"value": "red"
}
],
"resources": {
"requests": {
"cpu": "0.25",
"memoryInGB": "0.5"
}
}
}
],
"replicaCount": "1",
"networkRefs": [
{
"name": "[resourceId('Microsoft.ServiceFabricMesh/networks', 'fireworksNetwork')]"
}
]
}
},
{
"type": "Microsoft.ServiceFabricMesh/services",
"location": "[parameters('location')]",
"name": "worker2",
"properties": {
"description": "Service Fabric Mesh Fireworks Worker Service.",
"osType": "linux",
"codePackages": [
{
"name": "code",
"image": "vipulmmsft/azure-mesh-fireworks-worker-v1:0.4-strech",
"environmentVariables": [
{
"name": "OBJECT_TYPE",
"value": "green"
}
],
"resources": {
"requests": {
"cpu": "0.25",
"memoryInGB": "0.5"
}
}
}
],
"replicaCount": "1",
"networkRefs": [
{
"name": "[resourceId('Microsoft.ServiceFabricMesh/networks', 'fireworksNetwork')]"
}
]
}
},
{
"type": "Microsoft.ServiceFabricMesh/services",
"location": "[parameters('location')]",
"name": "worker3",
"properties": {
"description": "Service Fabric Mesh Fireworks Worker Service.",
"osType": "linux",
"codePackages": [
{
"name": "code",
"image": "vipulmmsft/azure-mesh-fireworks-worker-v1:0.4-strech",
"environmentVariables": [
{
"name": "OBJECT_TYPE",
"value": "blue"
}
],
"resources": {
"requests": {
"cpu": "0.25",
"memoryInGB": "0.5"
}
}
}
],
"replicaCount": "1",
"networkRefs": [
{
"name": "[resourceId('Microsoft.ServiceFabricMesh/networks', 'fireworksNetwork')]"
}
]
}
}
]
}
}
]
}

Просмотреть файл

@ -0,0 +1,168 @@
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "string",
"defaultValue": "eastus",
"metadata": {
"description": "Location of the resources."
}
}
},
"resources": [
{
"apiVersion": "2018-07-01-preview",
"name": "fireworksApp",
"type": "Microsoft.ServiceFabricMesh/applications",
"location": "[parameters('location')]",
"properties": {
"description": "Service Fabric Mesh Fireworks Demo App",
"services": [
{
"type": "Microsoft.ServiceFabricMesh/services",
"location": "[parameters('location')]",
"name": "web",
"properties": {
"description": "Service Fabric Mesh Fireworks Web Service.",
"osType": "linux",
"codePackages": [
{
"name": "code",
"image": "vipulmmsft/azure-mesh-fireworks-web:0.1-ignite-alpine",
"endpoints": [
{
"name": "webListener",
"port": "8080"
}
],
"environmentVariables": [
{
"name": "ASPNETCORE_URLS",
"value": "http://+:8080"
},
{
"name": "OBJECTCOUNTER_MAX_COUNT_OUTPUT_LIMIT",
"value": "500"
}
],
"resources": {
"requests": {
"cpu": "8",
"memoryInGB": "4"
}
}
}
],
"replicaCount": "1",
"networkRefs": [
{
"name": "[resourceId('Microsoft.ServiceFabricMesh/networks', 'fireworksNetwork')]"
}
]
}
},
{
"type": "Microsoft.ServiceFabricMesh/services",
"location": "[parameters('location')]",
"name": "worker1",
"properties": {
"description": "Service Fabric Mesh Fireworks Worker Service.",
"osType": "linux",
"codePackages": [
{
"name": "code",
"image": "vipulmmsft/azure-mesh-fireworks-worker-v1:0.4-strech",
"environmentVariables": [
{
"name": "OBJECT_TYPE",
"value": "red"
}
],
"resources": {
"requests": {
"cpu": "0.25",
"memoryInGB": "0.5"
}
}
}
],
"replicaCount": "525",
"networkRefs": [
{
"name": "[resourceId('Microsoft.ServiceFabricMesh/networks', 'fireworksNetwork')]"
}
]
}
},
{
"type": "Microsoft.ServiceFabricMesh/services",
"location": "[parameters('location')]",
"name": "worker2",
"properties": {
"description": "Service Fabric Mesh Fireworks Worker Service.",
"osType": "linux",
"codePackages": [
{
"name": "code",
"image": "vipulmmsft/azure-mesh-fireworks-worker-v1:0.4-strech",
"environmentVariables": [
{
"name": "OBJECT_TYPE",
"value": "green"
}
],
"resources": {
"requests": {
"cpu": "0.25",
"memoryInGB": "0.5"
}
}
}
],
"replicaCount": "525",
"networkRefs": [
{
"name": "[resourceId('Microsoft.ServiceFabricMesh/networks', 'fireworksNetwork')]"
}
]
}
},
{
"type": "Microsoft.ServiceFabricMesh/services",
"location": "[parameters('location')]",
"name": "worker3",
"properties": {
"description": "Service Fabric Mesh Fireworks Worker Service.",
"osType": "linux",
"codePackages": [
{
"name": "code",
"image": "vipulmmsft/azure-mesh-fireworks-worker-v1:0.4-strech",
"environmentVariables": [
{
"name": "OBJECT_TYPE",
"value": "blue"
}
],
"resources": {
"requests": {
"cpu": "0.25",
"memoryInGB": "0.5"
}
}
}
],
"replicaCount": "525",
"networkRefs": [
{
"name": "[resourceId('Microsoft.ServiceFabricMesh/networks', 'fireworksNetwork')]"
}
]
}
}
]
}
}
]
}