Integrating an AKS cluster and Azure Key Vault
To integrate Kubernetes with Azure Key Vault, we need to have a cluster set up. There are various options to create a cluster and each choice applies to the needs of certain circumstances. We shall create a simple AKS cluster; the master will be publicly available, but the nodes will reside on a private subnet of a virtual network.
We will provide some Terraform code for the scope of creating the cluster. Also, we shall provide the commands needed in case Terraform is not applicable.
Configuring the Terraform project
While creating the Terraform project, we will configure the state. The state can be saved in a storage account:
terraform { ... backend "azurerm" { resource_group_name = "resource-group" storage_account_name = "storage-account" ...