Added README
This commit is contained in:
parent
7a5a0062e4
commit
42d2f05b88
23
quickstart/101-aks-extended-zones/README.MD
Normal file
23
quickstart/101-aks-extended-zones/README.MD
Normal file
@ -0,0 +1,23 @@
|
||||
# Azure Kubernetes Service (AKS) cluster in an Azure Extended Zone
|
||||
|
||||
This template deploys an Azure Kubernetes Service (AKS) cluster in an Azure Extended Zones.
|
||||
|
||||
## Terraform resource types
|
||||
|
||||
- [random_pet](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/pet)
|
||||
- [azurerm_resource_group](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group)
|
||||
- [azurerm_virtual_network](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_network)
|
||||
- [azurerm_kubernetes_cluster](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster)
|
||||
|
||||
## Variables
|
||||
|
||||
| Name | Description | Default value |
|
||||
|-|-|-|
|
||||
| `resource_group_name_prefix` | Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription. | rg |
|
||||
| `resource_group_location` | Location of the resource group. | Central US |
|
||||
| `virtual_network_name` | Name of the virtual network resource. | example-vnet |
|
||||
| `aks_node_count` | Number of nodes in the AKS cluster. | 3 |
|
||||
| `aks_node_vm_size` | Size of the VMs in the AKS cluster. | Standard_D2_v2 |
|
||||
| `admin_username` | The admin username for the Windows node pool. | azureuser |
|
||||
| `admin_password` | The admin password for the Windows node pool. | Passw0rd1234Us! |
|
||||
| `aks_extended_zone` | AKS extended zone. | Los Angeles |
|
@ -39,7 +39,7 @@ resource "azurerm_kubernetes_cluster" "aks" {
|
||||
|
||||
default_node_pool {
|
||||
name = "agentpool"
|
||||
vm_size = "Standard_D2_v2"
|
||||
vm_size = var.aks_node_vm_size
|
||||
node_count = var.aks_node_count
|
||||
vnet_subnet_id = element(tolist(azurerm_virtual_network.vnet.subnet), 0).id
|
||||
}
|
||||
|
@ -1,15 +1,15 @@
|
||||
variable "resource_group_location" {
|
||||
type = string
|
||||
default = "Central US"
|
||||
description = "Location of the resource group."
|
||||
}
|
||||
|
||||
variable "resource_group_name_prefix" {
|
||||
type = string
|
||||
default = "rg"
|
||||
description = "Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription."
|
||||
}
|
||||
|
||||
variable "resource_group_location" {
|
||||
type = string
|
||||
default = "Central US"
|
||||
description = "Location of the resource group."
|
||||
}
|
||||
|
||||
variable "virtual_network_name" {
|
||||
type = string
|
||||
description = "Virtual network names"
|
||||
|
Loading…
x
Reference in New Issue
Block a user