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

Add ReliableCollections Voting app demo #25

Open
wants to merge 5 commits into
base: 2018-09-01-preview
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions templates/counter/mesh_rp.linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"resources": [
{
"apiVersion": "2018-07-01-preview",
"apiVersion": "2018-09-01-preview",
"name": "counterApp",
"type": "Microsoft.ServiceFabricMesh/applications",
"location": "[parameters('location')]",
Expand Down Expand Up @@ -94,7 +94,7 @@
}
},
{
"apiVersion": "2018-07-01-preview",
"apiVersion": "2018-09-01-preview",
"name": "counterAppNetwork",
"type": "Microsoft.ServiceFabricMesh/networks",
"location": "[parameters('location')]",
Expand All @@ -116,7 +116,7 @@
}
},
{
"apiVersion": "2018-07-01-preview",
"apiVersion": "2018-09-01-preview",
"name": "counterVolume",
"type": "Microsoft.ServiceFabricMesh/volumes",
"location": "[parameters('location')]",
Expand Down
104 changes: 104 additions & 0 deletions templates/counter/mesh_rp.sfvolume.linux.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"location": {
"type": "string",
"metadata": {
"description": "Location of the resources (e.g. westus, eastus, westeurope)."
}
},
"stateFolderName": {
"type": "string",
"defaultValue": "CounterService",
"metadata": {
"description": "Folder in which to store the state. Provide a empty value to create a unique folder for each container to store the state. A non-empty value will retain the state across deployments, however if more than one applications are using the same folder, the counter may update more frequently."
}
}
},
"resources": [
{
"apiVersion": "2018-09-01-preview",
"name": "sfVolCounterApp",
"type": "Microsoft.ServiceFabricMesh/applications",
"location": "[parameters('location')]",
"dependsOn": [
"Microsoft.ServiceFabricMesh/networks/sfVolCounterAppNetwork"
],
"properties": {
"description": "Azure Service Fabric Mesh sample counter application using SF Volume Disk",
"services": [
{
"name": "counterService",
"properties": {
"description": "A web service that serves the counter value stored in the Service Fabric volume disk.",
"osType": "linux",
"codePackages": [
{
"name": "counterService",
"image": "seabreeze/azure-mesh-counter:0.1-alpine",
"volumes": [
{
"name": "sfvol",
"creationParameters": {
"kind": "ServiceFabricVolumeDisk",
"sizeDisk": "Small"
},
"destinationPath": "/app/data"
}
],
"endpoints": [
{
"name": "counterServiceListener",
"port": 80
}
],
"environmentVariables": [
{
"name": "STATE_FOLDER_NAME",
"value": "[parameters('stateFolderName')]"
}
],
"resources": {
"requests": {
"cpu": 0.5,
"memoryInGB": 0.5
}
}
}
],
"replicaCount": 1,
"networkRefs": [
{
"name": "[resourceId('Microsoft.ServiceFabricMesh/networks', 'sfVolCounterAppNetwork')]"
}
]
}
}
]
}
},
{
"apiVersion": "2018-09-01-preview",
"name": "sfVolCounterAppNetwork",
"type": "Microsoft.ServiceFabricMesh/networks",
"location": "[parameters('location')]",
"dependsOn": [],
"properties": {
"description": "Azure Service Fabric Mesh Counter Application network.",
"addressPrefix": "10.0.0.4/22",
"ingressConfig": {
"layer4": [
{
"name": "counterServiceIngress",
"publicPort": "80",
"applicationName": "sfVolCounterApp",
"serviceName": "counterService",
"endpointName": "counterServiceListener"
}
]
}
}
}
]
}
6 changes: 3 additions & 3 deletions templates/counter/mesh_rp.windows.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
"resources": [
{
"apiVersion": "2018-07-01-preview",
"apiVersion": "2018-09-01-preview",
"name": "counterAppWindows",
"type": "Microsoft.ServiceFabricMesh/applications",
"location": "[parameters('location')]",
Expand Down Expand Up @@ -94,7 +94,7 @@
}
},
{
"apiVersion": "2018-07-01-preview",
"apiVersion": "2018-09-01-preview",
"name": "counterAppWindowsNetwork",
"type": "Microsoft.ServiceFabricMesh/networks",
"location": "[parameters('location')]",
Expand All @@ -116,7 +116,7 @@
}
},
{
"apiVersion": "2018-07-01-preview",
"apiVersion": "2018-09-01-preview",
"name": "counterVolumeWindows",
"type": "Microsoft.ServiceFabricMesh/volumes",
"location": "[parameters('location')]",
Expand Down
7 changes: 4 additions & 3 deletions templates/helloworld/mesh_rp.linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
},
"resources": [
{
"apiVersion": "2018-07-01-preview",
"apiVersion": "2018-09-01-preview",
"name": "helloWorldNetwork",
"type": "Microsoft.ServiceFabricMesh/networks",
"location": "[parameters('location')]",
"dependsOn": [],
"properties": {
"description": "Service Fabric Mesh network for HelloWorld sample.",
"addressPrefix": "10.0.0.4/22",
"ingressConfig": {
"layer4": [
Expand All @@ -32,15 +33,15 @@
}
},
{
"apiVersion": "2018-07-01-preview",
"apiVersion": "2018-09-01-preview",
"name": "helloWorldApp",
"type": "Microsoft.ServiceFabricMesh/applications",
"location": "[parameters('location')]",
"dependsOn": [
"Microsoft.ServiceFabricMesh/networks/helloWorldNetwork"
],
"properties": {
"description": "Service Fabric Mesh HelloWorld Application!",
"description": "Service Fabric Mesh HelloWorld application.",
"services": [
{
"type": "Microsoft.ServiceFabricMesh/services",
Expand Down
40 changes: 33 additions & 7 deletions templates/helloworld/mesh_rp.private_registry.linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,38 @@
},
"resources": [
{
"apiVersion": "2018-07-01-preview",
"apiVersion": "2018-09-01-preview",
"name": "hellowWorld_acr_password",
"type": "Microsoft.ServiceFabricMesh/secrets",
"location": "[parameters('location')]",
"dependsOn": [],
"properties": {
"kind": "inlinedValue",
"contentType": "text/plain",
"description": "Azure container registry password."
}
},
{
"apiVersion": "2018-09-01-preview",
"name": "hellowWorld_acr_password/v1",
"type": "Microsoft.ServiceFabricMesh/secrets/values",
"location": "[parameters('location')]",
"dependsOn": [
"Microsoft.ServiceFabricMesh/secrets/hellowWorld_acr_password"
],
"properties": {
"value": "[parameters('registry-password')]"
}
},
{
"apiVersion": "2018-09-01-preview",
"name": "helloWorldPrivateRegistryNetwork",
"type": "Microsoft.ServiceFabricMesh/networks",
"location": "[parameters('location')]",
"dependsOn": [],
"properties": {
"addressPrefix": "10.0.0.4/22",
"description": "Service Fabric Mesh network for HelloWorld sample with private registry support.",
"ingressConfig": {
"layer4": [
{
Expand All @@ -49,31 +74,32 @@
}
},
{
"apiVersion": "2018-07-01-preview",
"apiVersion": "2018-09-01-preview",
"name": "helloWorldPrivateRegistryApp",
"type": "Microsoft.ServiceFabricMesh/applications",
"location": "[parameters('location')]",
"dependsOn": [
"Microsoft.ServiceFabricMesh/networks/helloWorldPrivateRegistryNetwork"
"Microsoft.ServiceFabricMesh/networks/helloWorldPrivateRegistryNetwork",
"Microsoft.ServiceFabricMesh/secrets/hellowWorld_acr_password/values/v1"
],
"properties": {
"description": "SeaBreeze example application with container deployed from private image registry.",
"description": "Service Fabric Mesh HelloWorld application with container deployed from private registry.",
"services": [
{
"type": "Microsoft.ServiceFabricMesh/services",
"location": "[parameters('location')]",
"name": "helloWorldService",
"properties": {
"description": "SeaBreeze example service with container deployed from private image registry.",
"description": "Service Fabric Mesh HelloWorld service with container deployed from private registry.",
"osType": "linux",
"codePackages": [
{
"name": "helloWorldCode",
"image": "azure-mesh-helloworld:1.1-alpine",
"image": "[concat(parameters('registry-server'), '/seabreeze/azure-mesh-helloworld:1.1-alpine')]",
"imageRegistryCredential": {
"server": "[parameters('registry-server')]",
"username": "[parameters('registry-username')]",
"password": "[parameters('registry-password')]"
"password": "[resourceId('Microsoft.ServiceFabricMesh/secrets/values','hellowWorld_acr_password','v1')]"
},
"endpoints": [
{
Expand Down
Loading