enable virtual nodes in azure kubernates with terraform

12/18/2018

Is it possible for someone to provide configuration for enabling virtual nodes in in Azure Kubernates cluster with terraform.

-- Ganesh Pol
azure
azure-kubernetes
kubernetes
terraform

1 Answer

12/19/2018

Not sure, but I take the test and check. There some things will be helpful. When you create the AKS and enable the virtual nodes. There something specific come out in the AKS property different with disabling:

enter image description here

I also find it can be set in the Azure Template of AKS. But I cannot find where it can be set in the Terraform and it just shows like this:

A addon_profile block supports the following:

http_application_routing - (Optional) A http_application_routing block.

oms_agent - (Optional) A oms_agent block. For more details, please visit How to onboard Azure Monitor for containers.

So I think you could not create AKS with virtual nodes through Terraform. Maybe the reason is that the AKS virtual nodes just in the preview version. But I'm not really sure. Hope this will help you.

-- Charles Xu
Source: StackOverflow