Module used to deploy an AKS cluster on Azure with its dependencies
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ravi 85c31e1d3f fix changelog.md 2 weeks ago
controls remove workspace controls from inspec 2 weeks ago
examples fix inspec test 2 weeks ago
.gitignore Added condition for free option to let it compute by itself. 1 year ago
.pre-commit-config.yaml change node pool type 2 weeks ago
CHANGELOG.md fix changelog.md 2 weeks ago
Jenkinsfile update provider version and modify inspec 3 weeks ago
README.md fix inspec test 2 weeks ago
inspec.yml test:debug 3 weeks ago
main.tf remove max pods option 2 weeks ago
outputs.tf Add additionnal outputs 10 months ago
variables.tf fix inspec test 2 weeks ago
versions.tf update provider version and modify inspec 3 weeks ago

README.md

terraform-module-azure-aks

Terraform module that can be used to deploy an Azure Kubernetes Service.

NOTE: This module uses both azuread and azurerm providers. They should be set accordingly.

Requirements

Name Version
terraform >= 0.12
azurerm >= 2.0.0

Providers

Name Version
azurerm >= 2.0.0

Inputs

Name Description Type Default Required
admin_username The admin username for the cluster. Changing this forces a new resource to be created. string "testadmin" no
default_node_pool List of maps representing an agent pool profile. list n/a yes
dns_prefix DNS prefix for the inside the kubernetes cluster. string "kubernetes" no
enabled Whether to enable or not this module bool true no
kubernetes_version Version of kubernetes used in the cluster. string "1.16.7" no
location Location where the resource group and cluster will be deployed. string "canadacentral" no
log_analytics_workspace_name Name of the log analytics workspace that will host the cluster telemetric data. string "fxloganalytics" no
log_analytics_workspace_retentionDays Retention days for log analytics workspace. If SKU is free, leave empty, else 30 to 730 days. string "30" no
log_analytics_workspace_sku SKU of the log analytics workspace that will host the cluster telemetric data. string "free" no
log_analytics_workspace_tags Additional tags to add to the log analytics workspace. map {} no
name Name of the AKS cluster to deploy. This will be used also as the DNS prefix. Will also be used for the service principal. string "clustername" no
rbac_enabled Define if RBAC feature is enabled or not. bool false no
resource_group_name Name of the resource group that will be created and host with the cluster. string "aks" no
resource_group_tags Tags you want to apply to the resource group. map {} no
ssh_key_key_data The public SSH key used to access the cluster. Changing this forces a new resource to be created. string null no
tags Tags that will be applied on all resources. map(string) {} no

Outputs

Name Description
fqdn n/a
id n/a
kube_admin_config n/a
kube_config n/a
log_analytics_workspace_id n/a
log_analytics_workspace_primary_shared_key n/a
log_analytics_workspace_secondary_shared_key n/a
log_analytics_workspace_workspace_id n/a
resource_group_id n/a
resource_group_name n/a

agent-pool-profiles

Example:

[
  {
    name            = "tftest-aks"
    count           = 1
    vm_size         = "Standard_DS2_V2"
    os_type         = "Linux"
    os_disk_size_gb = 30
  }
]