terraform/quickstart/201-k8s-cluster-with-tf-and...
Tom Archer b6f52f38d3 changes per tech review 2022-08-28 23:30:10 -07:00
..
main.tf Removed deprecated block and fixed sku value 2022-08-27 22:08:55 -07:00
outputs.tf changes per tech review 2022-08-28 23:30:10 -07:00
providers.tf changes per tech review 2022-08-28 23:30:10 -07:00
readme.md readme files 2022-08-28 08:17:56 -07:00
terraform.tfvars Fixing article 2022-08-27 18:54:06 -07:00
variables.tf readme files 2022-08-28 08:17:56 -07:00

readme.md

Kubernetes cluster with Azure Kubernetes Service (AKS)

This template provisions an AKS / Azure Kubernetes service (also known as a Managed Kubernetes Cluster).

Terraform resource types

Variables

Name Description Default
resource_group_name_prefix Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription. rg
resource_group_location Location of the resource group. eastus
agent_count Initial number of nodes which should exist in this Node Pool. Value must be between 1 and 1000. 3
ssh_public_key File containing the an ssh_key block. ~/.ssh/id_rsa.pub
dns_prefix DNS prefix specified when creating the managed cluster. k8stest
cluster_name Name of the Managed Kubernetes Cluster to create. k8stest
log_analytics_workspace_name Prefix of the name of the Log Analytics Workspace. Random value is appended to ensure uniqueness across Azure. testLogAnalyticsWorkspaceName
log_analytics_workspace_location Azure location where the resource exists. eastus
log_analytics_workspace_sku SKU of the Log Analytics Workspace. PerGB2018
aks_service_principal_app_id Service principal app ID.
aks_service_principal_client_secret Service principal password.
aks_service_principal_object_id Service principal object ID.

Example

To see how to run this example, see Create a Kubernetes cluster with Azure Kubernetes Service using Terraform.