Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kjanshair/terraform-azurerm-aks
A terraform module for creating an AKS cluster on Azure.
https://github.com/kjanshair/terraform-azurerm-aks
azure devops terraform terraform-modules
Last synced: 7 days ago
JSON representation
A terraform module for creating an AKS cluster on Azure.
- Host: GitHub
- URL: https://github.com/kjanshair/terraform-azurerm-aks
- Owner: kjanshair
- Created: 2018-08-25T18:21:47.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-25T18:24:42.000Z (about 6 years ago)
- Last Synced: 2024-08-02T00:26:24.467Z (3 months ago)
- Topics: azure, devops, terraform, terraform-modules
- Language: HCL
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-terraform - terraform-azurerm-aks - Create AKS resources on Azure. (Community Modules / Miscellaneous)
- awesome-tf - terraform-azurerm-aks - Create AKS resources on Azure. (Community Modules / Miscellaneous)
README
# Create an Azure AKS (Azure Kubernetes Service) Cluster
Use this module to create a bare-metal managed AKS (Azure Kubernetes Service) cluster in Azure.
## Sample Usage
The example given below uses other Terraform modules available on the registry for brevity.
```
resource "azurerm_resource_group" "aks-rg" {
name = "AKS"
location = "${var.location_name}"
}module "AKSVNet" {
source = "Azure/network/azurerm"
vnet_name = "AKSVNet"
resource_group_name = "${azurerm_resource_group.aks-rg.name}"
location = "${azurerm_resource_group.aks-rg.location}"
address_space = "192.168.0.0/24" # Change CIDR to suite your needs
subnet_prefixes = ["192.168.0.0/24"] # Change CIDR to suite your needs
subnet_names = ["default"]
}module "AKSNSG" {
source = "Azure/network-security-group/azurerm"
resource_group_name = "${azurerm_resource_group.aks-rg.name}"
location = "${azurerm_resource_group.aks-rg.location}"
security_group_name = "NSG"
predefined_rules = [
{
name = "SSH"
priority = "500"
source_address_prefix = ["*"]
source_port_range = "*"
},
{
name = "HTTP"
priority = "501"
source_address_prefix = ["*"]
source_port_range = "*"
},
]
}module "kjanshair-cluster" {
source = "kjanshair/aks/azurerm"
ssh_key = ""
client_id = ""
client_secret = ""
aks_subnet_id = "${module.AKSVNet.vnet_subnets[0]}"
resource_group = "${azurerm_resource_group.aks-rg.name}"
}```