...
We assume you have an existing parent domain i.e. example.com hosted on the same account as the cluster that we are going to create in the coming section and you wish to access the cluster environment through the hostname. Terraform will create a subdomain in format
<cluster_name>.<domain>
.cluster name: uepe-aks
domain: example.com
final domain: uepe-aks.example.com
In addition, we also assume terraform is allowed to add a NS (NameServer) record to the parent domain. This is to allow DNS delegation from the parent domain to subdomain.
Terraform needs to persist the state of your provisioned infrastructure, by default the state file is stored locally on the computer that terraform is executed from. However if you have multiple person working on the infrastructure then it is recommended to store the state file on remote persistent such as Azure Storage, see https://learn.microsoft.com/en-us/azure/developer/terraform/store-state-in-azure-storage?tabs=terraform for more information.
We use the Azure Files (SMB/NFS) as the default persistent storage for data needs to be persisted.
We use the Azure Database for PostgreSQL - Flexible Server service for Usage Engine Private Edition database.
We assume that you have the privileges to create user managed identity and grant role to the identity created by terraform within the same resource group. See https://learn.microsoft.com/en-us/entra/identity/managed-identities-azure-resources/how-manage-user-assigned-managed-identities?pivots=identity-mi-methods-azp for more details.
To use the terraform template, preview feature has to be enabled in your Azure subscription. Refer to https://learn.microsoft.com/en-us/azure/aks/api-server-vnet-integration#install-the-aks-preview-azure-cli-extension for the commands to run. You only need to execute these sections:
Install the aks-preview Azure CLI extension
Register the 'EnableAPIServerVnetIntegrationPreview' feature flag
Create Basic Cluster and
...
Additional Infrastructure
Follow these steps to create a basic Kubernetes cluster with public and private VPC:
...
A basic Kubernetes cluster has now been set up successfully.
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
...
Code Block |
---|
NAME STATUS ROLES AGE VERSION aks-default-41718565-vmss000000 Ready <none> 6d2h v1.29.5 aks-default-41718565-vmss000001 Ready <none> 6d1h v1.29.5 aks-internal-23883603-vmss000000 Ready <none> 6d2h v1.29.5 |
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
...