-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(examples/aks-spring-music): update per arm mixin
Signed-off-by: Vaughn Dice <[email protected]>
- Loading branch information
Showing
4 changed files
with
234 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"clusterName": { | ||
"type": "string", | ||
"defaultValue": "[concat('cnab-aks-', uniqueString(resourceGroup().id))]", | ||
"metadata": { | ||
"description": "AKS cluster name. Defaults to cnab-aks-xxxxxxxxxxxxx, where xxx... is a unique string based of the hash of your resource group id." | ||
} | ||
}, | ||
"location": { | ||
"type": "string", | ||
"defaultValue": "[resourceGroup().location]", | ||
"metadata": { | ||
"description": "The location of the Managed Cluster resource." | ||
} | ||
}, | ||
"dnsPrefix": { | ||
"type": "string", | ||
"defaultValue": "[concat('cnab-aks-', uniqueString(resourceGroup().id))]", | ||
"metadata": { | ||
"description": "Optional DNS prefix to use with hosted Kubernetes API server FQDN." | ||
} | ||
}, | ||
"osDiskSizeGB": { | ||
"type": "int", | ||
"defaultValue": 0, | ||
"metadata": { | ||
"description": "Disk size (in GB) to provision for each of the agent pool nodes. This value ranges from 0 to 1023. Specifying 0 will apply the default disk size for that agentVMSize." | ||
}, | ||
"minValue": 0, | ||
"maxValue": 1023 | ||
}, | ||
"agentCount": { | ||
"type": "int", | ||
"defaultValue": 3, | ||
"metadata": { | ||
"description": "The number of nodes for the cluster." | ||
}, | ||
"minValue": 1, | ||
"maxValue": 50 | ||
}, | ||
"agentVMSize": { | ||
"type": "string", | ||
"defaultValue": "Standard_DS2_v2", | ||
"metadata": { | ||
"description": "The size of the Virtual Machine." | ||
} | ||
}, | ||
"servicePrincipalClientId": { | ||
"metadata": { | ||
"description": "Client ID (used by cloudprovider)" | ||
}, | ||
"type": "securestring" | ||
}, | ||
"servicePrincipalClientSecret": { | ||
"metadata": { | ||
"description": "The Service Principal Client Secret." | ||
}, | ||
"type": "securestring" | ||
}, | ||
"osType": { | ||
"type": "string", | ||
"defaultValue": "Linux", | ||
"allowedValues": [ | ||
"Linux" | ||
], | ||
"metadata": { | ||
"description": "The type of operating system." | ||
} | ||
}, | ||
"kubernetesVersion": { | ||
"type": "string", | ||
"defaultValue": "1.15.7", | ||
"metadata": { | ||
"description": "The version of Kubernetes." | ||
} | ||
} | ||
}, | ||
"resources": [ | ||
{ | ||
"apiVersion": "2018-03-31", | ||
"type": "Microsoft.ContainerService/managedClusters", | ||
"location": "[parameters('location')]", | ||
"name": "[parameters('clusterName')]", | ||
"properties": { | ||
"kubernetesVersion": "[parameters('kubernetesVersion')]", | ||
"dnsPrefix": "[parameters('dnsPrefix')]", | ||
"agentPoolProfiles": [ | ||
{ | ||
"name": "agentpool", | ||
"osDiskSizeGB": "[parameters('osDiskSizeGB')]", | ||
"count": "[parameters('agentCount')]", | ||
"vmSize": "[parameters('agentVMSize')]", | ||
"osType": "[parameters('osType')]", | ||
"storageProfile": "ManagedDisks" | ||
} | ||
], | ||
"servicePrincipalProfile": { | ||
"clientId": "[parameters('servicePrincipalClientId')]", | ||
"Secret": "[parameters('servicePrincipalClientSecret')]" | ||
} | ||
} | ||
} | ||
], | ||
"outputs": { | ||
"controlPlaneFQDN": { | ||
"type": "string", | ||
"value": "[reference(parameters('clusterName')).fqdn]" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"name": { | ||
"type": "string", | ||
"defaultValue": "[concat('cnab-cosmos-', uniqueString(resourceGroup().id))]", | ||
"metadata": { | ||
"description": "Cosmos DB account name. Defaults to cnab-cosmos-xxxxxxxxxxxxx, where xxx... is a unique string based of the hash of your resource group id." | ||
} | ||
}, | ||
"location": { | ||
"type": "string", | ||
"defaultValue": "[resourceGroup().location]", | ||
"metadata": { | ||
"description": "Location for the Cosmos DB account. Defaults to the resource group location." | ||
} | ||
}, | ||
"apiVersion": { | ||
"type": "string", | ||
"defaultValue": "2016-03-31", | ||
"metadata": { | ||
"description": "API Version. Defaults to '2016-03-31'." | ||
} | ||
}, | ||
"kind": { | ||
"type": "string", | ||
"defaultValue": "MongoDB", | ||
"metadata": { | ||
"description": "The type/kind of API for the Cosmos Database. Defaults to MongoDB." | ||
} | ||
}, | ||
"mongoCapabilities": { | ||
"type": "array", | ||
"defaultValue": [ | ||
{ | ||
"name": "EnableAggregationPipeline" | ||
}, | ||
{ | ||
"name": "MongoDBv3.4" | ||
} | ||
], | ||
"metadata": { | ||
"description": "MongoDB API capabilities that should be enabled by default." | ||
} | ||
}, | ||
"enableMongoCapabilities": { | ||
"type": "array", | ||
"defaultValue": "[if(equals(parameters('kind'), 'MongoDB'), parameters('mongoCapabilities'), '[]')]", | ||
"metadata": { | ||
"description": "Conditional to enable api specific capabilities if MongoDB is the API chosen." | ||
} | ||
} | ||
}, | ||
"variables": {}, | ||
"resources": [ | ||
{ | ||
"apiVersion": "[parameters('apiVersion')]", | ||
"kind": "[parameters('kind')]", | ||
"type": "Microsoft.DocumentDB/databaseAccounts", | ||
"name": "[parameters('name')]", | ||
"location": "[parameters('location')]", | ||
"properties": { | ||
"databaseAccountOfferType": "Standard", | ||
"locations": [ | ||
{ | ||
"id": "[concat(parameters('name'), '-', parameters('location'))]", | ||
"failoverPriority": 0, | ||
"locationName": "[parameters('location')]" | ||
} | ||
], | ||
"enableMultipleWriteLocations": true, | ||
"isVirtualNetworkFilterEnabled": false, | ||
"virtualNetworkRules": [], | ||
"dependsOn": [], | ||
"capabilities": "[parameters('enableMongoCapabilities')]" | ||
} | ||
} | ||
], | ||
"outputs": { | ||
"HOST": { | ||
"type": "string", | ||
"value": "[reference(parameters('name')).documentEndpoint]" | ||
}, | ||
"primary_key": { | ||
"type": "string", | ||
"value": "[listKeys(resourceId('Microsoft.DocumentDb/databaseAccounts', parameters('name')), parameters('apiVersion')).primaryMasterKey]" | ||
}, | ||
"connection_string": { | ||
"type": "string", | ||
"value": "[listConnectionStrings(resourceId('Microsoft.DocumentDb/databaseAccounts', parameters('name')), parameters('apiVersion')).connectionStrings[0].connectionString]" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters