Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. 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>.

    1. cluster name: uepe-aks

    2. domain: example.com

    3. final domain: uepe-aks.example.com

  2. 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.

  3. 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.

  4. We use the Azure Files (SMB/NFS) as the default persistent storage for data needs to be persisted.

  5. We use the Azure Database for PostgreSQL - Flexible Server service for Usage Engine Private Edition database.

  6. 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.

  7. 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:

    1. Install the aks-preview Azure CLI extension

    2. 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
UEPE4D:General Kubernetes PreparationsUEPE4D:
General Kubernetes Preparations
nameterraform state message
nopaneltrue

...

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
UEPE4D:General Kubernetes PreparationsUEPE4D:
General Kubernetes Preparations
namecommon-namespace
nopaneltrue

...