Skip to content

Terraform definition for creating a Kubernetes cluster via Azure Kubernetes Service (AKS) with both a Linux and Windows node pool for testing purposes.

Notifications You must be signed in to change notification settings

lippertmarkus/terraform-azurerm-aks-windows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

terraform-azurerm-aks-windows

Terraform definition for creating a Kubernetes cluster via Azure Kubernetes Service (AKS) with both a Linux and Windows node pool for testing purposes. You can then run hybrid workloads within your cluster like your CI/CD pipeline like described in my blog post (coming soon).

Deployment on Azure

You need to install Terraform as well as the Azure CLI first. Then execute the following in the directory of the cloned repository:

az login  # log in to your Azure account
terraform init  # initialize terraform
terraform apply -auto-approve  # provision infrastructure

In the variables.tf file you can find additional parameters which you can specify via -var resource_group=aksrg when running terraform apply.

Interact with the cluster

After the deployment you get the kube_config as an output. Store it in ~/.kube/config on Linux or %userprofile%\.kube\config on Windows to use it as default:

terraform output kube_config > ~/.kube/config 

You can then interact with the Cluster with CLIs like kubectl and helm.

About

Terraform definition for creating a Kubernetes cluster via Azure Kubernetes Service (AKS) with both a Linux and Windows node pool for testing purposes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages