Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 4.06 KB

README.md

File metadata and controls

56 lines (41 loc) · 4.06 KB

cluster

This is top level module creates resource group, vnet, subnets and aks cluster by calling vnet_and_subnets and aks modules.

Summary

This module creates following resources -

  • Resource Group
  • VPC (VNET)
  • Subnet
  • AKS Cluster with a default nodepool
  • Optionally can create other k8s worker nodepools

Requirements

No requirements.

Providers

No providers.

Modules

Name Source Version
aks_with_node_group aks n/a
vnet_with_subnets vnet_and_subnets n/a

Resources

No resources.

Inputs

Name Description Type Default Required
address_space The address space that is used the virtual network. You can supply more than one address space but for our module implementation we are limiting it to 1 address space only. list(string)
[
"10.1.0.0/16"
]
no
cluster_name resource group, vnet, subnet and aks cluster name string n/a yes
k8s_version kubernetes version string "1.26" no
nodepools Nodepools for the Kubernetes cluster
map(object({
name = string
zones = list(number)
vm_size = string
min_count = number
max_count = number
enable_auto_scaling = bool
enable_node_public_ip = bool
tags = map(string)
node_labels = map(string)
}))
{
"worker": {
"enable_auto_scaling": true,
"enable_node_public_ip": true,
"max_count": 100,
"min_count": 1,
"name": "worker",
"node_labels": {
"worker-name": "worker"
},
"tags": {
"worker_name": "worker"
},
"vm_size": "Standard_D2_v2",
"zones": [
1,
2,
3
]
}
}
no
region azure region where the aks cluster must be created, this region should match where you have created the resource group, vnet and subnet string n/a yes

Outputs

Name Description
az_rg_id The ID of the resource group
az_rg_name The name of the resource group
az_subnet_id The ID of the subnet
az_vnet_id The ID of the vnet
client_certificate Base64 encoded public certificate used by clients to authenticate to the Kubernetes cluster.
cluster_id The Kubernetes Managed Cluster ID.
kube_config Raw Kubernetes config to be used by kubectl and other compatible tools.
node_resource_group The auto-generated Resource Group which contains the resources for this Managed Kubernetes Cluster.
node_resource_group_id The auto-generated Resource Group which contains the resources for this Managed Kubernetes Cluster.
oidc_issuer_url The OIDC issuer URL that is associated with the cluster