Skip to content

Latest commit

 

History

History

aks

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

aks module

This is the documentation for aks module.

Summary

This module creates following resources -

  • aks cluster with a default system nodepool
  • optionally you can create worker nodepools

Requirements

Name Version
azurerm =3.65.0

Providers

Name Version
azurerm =3.65.0

Modules

No modules.

Resources

Name Type
azurerm_kubernetes_cluster.k8s resource
azurerm_kubernetes_cluster_node_pool.k8s-worker resource

Inputs

Name Description Type Default Required
aks_tags tags for the aks cluster map(any) {} no
az_subnet_id azure subnet id where the nodepools and eks cluster need to be created string n/a yes
cluster_name aks cluster name string n/a yes
dns_prefix DNS prefix specified when creating the managed cluster. Possible values must begin and end with a letter or number, contain only letters, numbers, and hyphens and be between 1 and 54 characters in length. Changing this forces a new resource to be created. string "platformwale" no
k8s_version kubernetes version string "1.26" no
network_plugin Network plugin to use for networking. Currently supported values are azure, kubenet and none. Changing this forces a new resource to be created. string "none" 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
resource_group_name azure resource group name where the aks cluster should be created string n/a yes

Outputs

Name Description
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