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

updated quickstart template - linux

This commit is contained in:
Mikkel Mork Hegnhoj 2018-05-03 22:31:37 -07:00
Родитель 97cc2ec523
Коммит a84ad5ca45
1 изменённых файлов: 134 добавлений и 125 удалений

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

@ -1,126 +1,135 @@
{
"$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-03-01-privatepreview",
"name": "SbzVotingNetwork",
"type": "Microsoft.ServiceFabric/networks",
"location": "[parameters('location')]",
"dependsOn": [],
"properties": {
"description": "Private network for application",
"addressPrefix": "10.0.0.4/22",
"ingressConfig": {
"qosLevel": "bronze",
"layer4": [
{
"publicPort": "80",
"applicationName": "SbzVoting",
"serviceName": "VotingWeb",
"endpointName": "Endpoint1"
}
]
}
}
},
{
"apiVersion": "2018-03-01-privatepreview",
"name": "SbzVoting",
"type": "Microsoft.ServiceFabric/applications",
"location": "[parameters('location')]",
"properties": {
"description": "Voting SeaBreeze!",
"services": [
{
"name": "VotingWeb",
"properties": {
"description": "Seabreeze Voting Web service.",
"osType": "linux",
"codePackages": [
{
"name": "VotingWeb.Code",
"image": "seabreeze/votingfrontend:1.0-Linux",
"endpoints": [
{
"name": "Endpoint1",
"port": 80
}
],
"environmentVariables": [
{
"name": "Voting_BackendHostName",
"value": "votingdata"
},
{
"name": "Voting_BackendHostPort",
"value": "8080"
}
],
"resources": {
"requests": {
"cpu": 1,
"memoryInGB": 1
}
}
}
],
"replicaCount": 1,
"networkRefs": [
{
"name": "[resourceId('Microsoft.ServiceFabric/networks', 'SbzVotingNetwork')]"
}
]
}
},
{
"name": "VotingData",
"properties": {
"description": "Seabreeze Voting Data service.",
"osType": "linux",
"codePackages": [
{
"name": "VotingData.Code",
"image": "seabreeze/votingdata:1.0-Linux",
"endpoints": [
{
"name": "Endpoint1",
"port": 8080
}
],
"environmentVariables": [
{
"name": "ASPNETCORE_URLS",
"value": "http://*:8080"
}
],
"resources": {
"requests": {
"cpu": 1,
"memoryInGB": 1
}
}
}
],
"replicaCount": 1,
"networkRefs": [
{
"name": "[resourceId('Microsoft.ServiceFabric/networks', 'SbzVotingNetwork')]"
}
]
}
}
]
}
}
]
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"defaultValue": "westus",
"type": "String",
"metadata": {
"description": "Location of the resources."
}
}
},
"resources": [
{
"apiVersion": "2018-03-01-privatepreview",
"name": "VotingAppNetwork",
"type": "Microsoft.ServiceFabric/networks",
"location": "[parameters('location')]",
"dependsOn": [],
"properties": {
"schemaVersion": "0.0.1",
"description": "VotingApp Network",
"addressPrefix": "10.0.0.4/22",
"ingressConfig": {
"layer4": [
{
"name": "VotingWebIngress",
"publicPort": "8080",
"applicationName": "VotingApp",
"serviceName": "VotingWeb",
"endpointName": "VotingWebListener"
}
]
}
}
},
{
"apiVersion": "2018-03-01-privatepreview",
"name": "VotingApp",
"type": "Microsoft.ServiceFabric/applications",
"location": "[parameters('location')]",
"dependsOn": [
"Microsoft.ServiceFabric/networks/VotingAppNetwork"
],
"properties": {
"schemaVersion": "0.0.1",
"services": [
{
"name": "VotingData",
"properties": {
"description": "VotingData Backend",
"osType": "linux",
"codePackages": [
{
"name": "VotingData",
"image": "seabreeze/votingdata:1.0-linux",
"endpoints": [
{
"name": "VotingDataListener",
"port": 8288
}
],
"environmentVariables": [
{
"name": "ASPNETCORE_URLS",
"value": "http://+:8288"
}
],
"resources": {
"requests": {
"cpu": 0.5,
"memoryInGB": 1.0
}
}
}
],
"replicaCount": 1,
"networkRefs": [
{
"name": "[resourceId('Microsoft.ServiceFabric/networks', 'VotingAppNetwork')]"
}
]
}
},
{
"name": "VotingWeb",
"properties": {
"description": "VotingWeb Frontend",
"osType": "linux",
"codePackages": [
{
"name": "VotingWeb",
"image": "seabreeze/votingweb:1.0-linux",
"endpoints": [
{
"name": "VotingWebListener",
"port": 8080
}
],
"environmentVariables": [
{
"name": "ASPNETCORE_URLS",
"value": "http://+:8080"
},
{
"name": "Voting_BackendHostName",
"value": "VotingData"
},
{
"name": "Voting_BackendHostPort",
"value": "8288"
}
],
"resources": {
"requests": {
"cpu": 0.5,
"memoryInGB": 1.0
}
}
}
],
"replicaCount": 1,
"networkRefs": [
{
"name": "[resourceId('Microsoft.ServiceFabric/networks', 'VotingAppNetwork')]"
}
]
}
}
],
"description": "VotingApp for Mesh"
}
}
]
}