Created
August 7, 2018 11:48
-
-
Save eosfor/976bbd856b9116fbbbf8eeccd7d71517 to your computer and use it in GitHub Desktop.
AKS deployment sample
This file contains hidden or 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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"clusterName": { | |
"type": "string" | |
}, | |
"kubernetesVersion": { | |
"type": "string", | |
"defaultValue": "1.10.6", | |
"allowedValues": [ | |
"1.10.6", | |
"1.10.5", | |
"1.10.3" | |
], | |
}, | |
"vnetSubnetID": { | |
"type": "string" | |
}, | |
"dnsPrefix": { | |
"type": "string" | |
}, | |
"workerCount": { | |
"type": "int" | |
}, | |
"servicePrincipalClientId": { | |
"type": "string", | |
"metadata": { | |
"description": "generate with the command line: " | |
} | |
}, | |
"servicePrincipalSecret": { | |
"type": "securestring" | |
}, | |
"vmSize": { | |
"type": "string" | |
} | |
}, | |
"variables": {}, | |
"resources": [ | |
{ | |
"name": "[parameters('clusterName')]", | |
"type": "Microsoft.ContainerService/managedClusters", | |
"apiVersion": "2018-03-31", | |
"location": "[resourceGroup().location]", | |
"tags": {}, | |
"properties": { | |
"kubernetesVersion": "[parameters('kubernetesVersion')]", | |
"dnsPrefix": "[parameters('dnsPrefix')]", | |
"agentPoolProfiles": [ | |
{ | |
"name": "[concat(parameters('clusterName'))]", | |
"count": "[parameters('workerCount')]", | |
"vmSize": "[parameters('vmSize')]", | |
"vnetSubnetID": "[parameters('vnetSubnetID')]", | |
"maxPods": 15 | |
} | |
], | |
"linuxProfile": { | |
"adminUsername": "azureuser", | |
"ssh": { | |
"publicKeys": [ | |
{ | |
"keyData": "ssh-rsa <key goes here>" | |
} | |
] | |
} | |
}, | |
"networkProfile": { | |
"networkPlugin": "azure", | |
"serviceCidr":"172.66.0.0/16", | |
"DNSServiceIP":"172.66.0.10", | |
"dockerBridgeCidr":"172.33.0.1/16" | |
}, | |
"servicePrincipalProfile": { | |
"clientId": "[parameters('servicePrincipalClientId')]", | |
"secret": "[parameters('servicePrincipalSecret')]" | |
}, | |
"enableRBAC": false | |
} | |
} | |
], | |
"outputs": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment