k8s

hajowieland/k8s/azurerm

Terraform Module HCL AZURERM

Terraform module for creating a Kubernetes cluster on Microsoft Azure with latest available version, kubeconfig file creation and addititonal node pool.

Install
module "k8s" {
source = "hajowieland/k8s/azurerm"
version = "1.2.1"
}
plain text: /constructs/tfmod-hajowieland-k8s-azurerm/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform Kubernetes on Microsoft Azure This repository contains the Terraform module for creating a simple but ready-to-use Kubernetes Cluster on Microsoft Azure Kubernetes Service (AKS). It uses the latest Kubernetes version available in the Azure location and creates a kubeconfig file at completion. Link to my comprehensive blog post (beginner friendly): https://napo.io/posts/terraform-kubernetes-multi-cloud-ack-aks-dok-eks-gke-oke/#microsoft-azure - Terraform Kubernetes on Microsoft Azure - Requirements - Features - Notes - Defaults - Runtime - Terraform Inputs - Outputs Requirements You need a Microsoft Azure account with a subscription (for example a Pay-As-You-Go subscription). Features Always uses latest Kubernetes version available at Azure location kubeconfig file generation Crea

Inputs (13)
NameTypeDescriptionDefault
az_client_idstringAzure Service Principal appId required
az_client_secretstringAzure Service Principal password required
az_tenant_idstringAzure Service Principal tenant required
enable_microsoftboolEnable / Disable Microsoft Azure k8s (e.g. `true`)true
random_cluster_suffixstringRandom 6 byte hex suffix for cluster name""
aks_regionstringAKS region (e.g. `West Europe`) -> `az account list-locations --output table`"West Europe"
aks_pool_namestringAKS agent node pool name (e.g. `k8s-aks-nodepool`)"k8snodepool"
aks_node_disk_sizenumberAKS node instance disk size in GB (e.g. `30` => minimum: 30GB, maximum: 1024)30
enable_logsboolEnable azure log analtics for container logsfalse
ssh_public_keystringPath to your SSH public key (e.g. `~/.ssh/id_rsa.pub`)"~/.ssh/id_rsa.pub"
aks_namestringAKS cluster name (e.g. `k8s-aks`)"k8s"
aks_nodesnumberAKS Kubernetes worker nodes (e.g. `2`)2
aks_node_typestringAKS node pool instance type (e.g. `Standard_D1_v2` => 1vCPU, 3.75 GB RAM)"Standard_D1_v2"
Outputs (4)
kubeconfig_path_aks
latest_k8s_version
public_ip_address
public_ip_fqdn
Resources (7)
azurerm_kubernetes_clusterazurerm_log_analytics_solutionazurerm_log_analytics_workspaceazurerm_public_ipazurerm_resource_grouplocal_filerandom_id
Details
FrameworkTerraform Module
LanguageHCL
Version1.2.1
Cloud AZURERM
★ Stars4
Forks6
Total downloads6.3k
Inputs13
Outputs4
Resources7
LicenseGPL-3.0
Namespacehajowieland
Updated