Advertisement
Guest User

azuredeploy

a guest
Jul 23rd, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.36 KB | None | 0 0
  1. {
  2. "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  3. "contentVersion": "1.0.0.0",
  4. "parameters": {
  5. "subnetKubernetes": {
  6. "type": "string"
  7. },
  8. "workspaceResourceId": {
  9. "type": "string"
  10. },
  11. "aksClusterName": {
  12. "type": "string"
  13. },
  14. "ServicePrincipal": {
  15. "type": "string",
  16. "metadata": {
  17. "description": "Application ID/Client ID of the service principal. Used by AKS to manage AKS related resources on Azure like vms, subnets."
  18. }
  19. },
  20. "clientSecret": {
  21. "type": "string",
  22. "metadata": {
  23. "description": "Secret of the service principal. Used by AKS to manage Azure."
  24. }
  25. },
  26. "clientAppID": {
  27. "type": "string",
  28. "metadata": {
  29. "description": "clientAppID used for RBAC with Azure AD"
  30. }
  31. },
  32. "serverAppID": {
  33. "type": "string",
  34. "metadata": {
  35. "description": "serverAppID used for RBAC with Azure AD"
  36. }
  37. },
  38. "serverAppSecret": {
  39. "type": "string",
  40. "metadata": {
  41. "description": "serverAppSecret used for RBAC with Azure AD"
  42. }
  43. },
  44. "tenantID": {
  45. "type": "string",
  46. "metadata": {
  47. "description": "tenantID"
  48. }
  49. },
  50. "virtualNetworkAddressPrefix": {
  51. "defaultValue": "10.0.0.0/8",
  52. "type": "string",
  53. "metadata": {
  54. "description": "Containers DNS server IP address."
  55. }
  56. },
  57. "SubnetAddressPrefix": {
  58. "defaultValue": "10.0.0.0/16",
  59. "type": "string",
  60. "metadata": {
  61. "description": "Containers DNS server IP address."
  62. }
  63. },
  64. "DnsPrefix": {
  65. "defaultValue": "aks",
  66. "type": "string",
  67. "metadata": {
  68. "description": "Optional DNS prefix to use with hosted Kubernetes API server FQDN."
  69. }
  70. },
  71. "AgentOsDiskSizeGB": {
  72. "defaultValue": 40,
  73. "minValue": 30,
  74. "maxValue": 1023,
  75. "type": "int",
  76. "metadata": {
  77. "description": "Disk size (in GB) to provision for each of the agent pool nodes. This value ranges from 30 to 1023."
  78. }
  79. },
  80. "AgentCount": {
  81. "defaultValue": 5,
  82. "minValue": 1,
  83. "maxValue": 50,
  84. "type": "int",
  85. "metadata": {
  86. "description": "The number of agent nodes for the cluster."
  87. }
  88. },
  89. "AgentVMSize": {
  90. "defaultValue": "Standard_E2s_v3",
  91. "allowedValues": [
  92. "Standard_DS2",
  93. "Standard_DS2_v2",
  94. "Standard_DS2_v2_Promo",
  95. "Standard_DS3",
  96. "Standard_DS3_v2",
  97. "Standard_DS3_v2_Promo",
  98. "Standard_DS4",
  99. "Standard_DS4_v2",
  100. "Standard_DS4_v2_Promo",
  101. "Standard_E2s_v3",
  102. "Standard_E4s_v3"
  103. ],
  104. "type": "string",
  105. "metadata": {
  106. "description": "The size of the Virtual Machine."
  107. }
  108. },
  109. "kubernetesVersion": {
  110. "defaultValue": "1.13.5",
  111. "type": "string",
  112. "metadata": {
  113. "description": "The version of Kubernetes."
  114. }
  115. },
  116. "ServiceCIDR": {
  117. "defaultValue": "10.2.0.0/16",
  118. "type": "string",
  119. "metadata": {
  120. "description": "A CIDR notation IP range from which to assign service cluster IPs."
  121. }
  122. },
  123. "DnsServiceIP": {
  124. "defaultValue": "10.2.0.10",
  125. "type": "string",
  126. "metadata": {
  127. "description": "Containers DNS server IP address."
  128. }
  129. },
  130. "DockerBridgeCIDR": {
  131. "defaultValue": "172.17.0.1/16",
  132. "type": "string",
  133. "metadata": {
  134. "description": "A CIDR notation IP for Docker bridge."
  135. }
  136. },
  137. "EnableRBAC": {
  138. "type": "bool",
  139. "defaultValue": true,
  140. "metadata": {
  141. "description": "Enable RBAC on the AKS cluster."
  142. }
  143. }
  144. },
  145. "resources": [
  146. {
  147. "type": "Microsoft.ContainerService/managedClusters",
  148. "name": "[parameters('aksClusterName')]",
  149. "apiVersion": "2019-06-01",
  150. "location": "[resourceGroup().location]",
  151. "properties": {
  152. "kubernetesVersion": "[parameters('kubernetesVersion')]",
  153. "enableRBAC": "[parameters('EnableRBAC')]",
  154. "dnsPrefix": "[parameters('DnsPrefix')]",
  155. "addonProfiles": {
  156. "httpApplicationRouting": {
  157. "enabled": false
  158. },
  159. "omsagent": {
  160. "enabled": true,
  161. "config": {
  162. "logAnalyticsWorkspaceResourceID": "[parameters('workspaceResourceId')]"
  163. }
  164. }
  165. },
  166. "agentPoolProfiles": [
  167. {
  168. "name": "agentpool",
  169. "osDiskSizeGB": "[parameters('AgentOsDiskSizeGB')]",
  170. "count": "[parameters('AgentCount')]",
  171. "vmSize": "[parameters('AgentVMSize')]",
  172. "osType": "Linux",
  173. "storageProfile": "ManagedDisks",
  174. "vnetSubnetID": "[parameters('subnetKubernetes')]",
  175. "dnsPrefix": "agents",
  176. "minCount": 5,
  177. "maxCount": 8,
  178. "enableAutoScaling": true,
  179. "type": "VirtualMachineScaleSets",
  180. "availabilityZones": [
  181. "1",
  182. "2",
  183. "3"
  184. ]
  185. }
  186. ],
  187. "aadProfile": {
  188. "clientAppID": "[parameters('clientAppID')]",
  189. "serverAppID": "[parameters('serverAppID')]",
  190. "serverAppSecret": "[parameters('serverAppSecret')]",
  191. "tenantID": "[parameters('tenantID')]"
  192. },
  193. "servicePrincipalProfile": {
  194. "clientId": "[parameters('ServicePrincipal')]",
  195. "secret": "[parameters('clientSecret')]"
  196. },
  197. "networkProfile": {
  198. "networkPlugin": "azure",
  199. "networkPolicy": "calico",
  200. "serviceCidr": "[parameters('ServiceCIDR')]",
  201. "dnsServiceIP": "[parameters('DnsServiceIP')]",
  202. "dockerBridgeCidr": "[parameters('DockerBridgeCIDR')]",
  203. "loadBalancerSku": "standard"
  204. }
  205. }
  206. }
  207. ]
  208. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement