Fixed container image reference in votingapp linux
This commit is contained in:
Родитель
998ac35cd7
Коммит
7eb8e08ebf
|
@ -2,134 +2,125 @@
|
|||
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"location": {
|
||||
"defaultValue": "eastus",
|
||||
"type": "String",
|
||||
"metadata": {
|
||||
"description": "Location of the resources."
|
||||
"location": {
|
||||
"type": "string",
|
||||
"defaultValue": "eastus",
|
||||
"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-stretch",
|
||||
"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-stretch",
|
||||
"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')]"
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
||||
"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-stretch",
|
||||
"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-stretch",
|
||||
"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')]"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"description": "VotingApp for Mesh"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче