Targeted Deployment

Pre-deployment checklist before starting deployment, verify:

  • Azure subscription ID is correct in terraform.tfvars

  • Your IP address is included in ip_ranges_allowed_to_kubeapi and ip_ranges_allowed_kv_access

  • SSH public key is valid and accessible

  • LogScale license is valid and not expired

  • Azure CLI is logged in: az account show

  • You have Owner permissions on the target subscription

  • Resource name prefix is unique (max 8 characters)

Then continue with the installation:

  1. Login to Azure

    shell
    az login
  2. Deploy Azure Infrastructure

    shell
    terraform init
    terraform apply -target="module.azure-core" -target="module.azure-keyvault" -target="module.azure-kubernetes" -target="module.logscale-storage-account"
  3. Configure kubectl for AKS Configure kubectl using Terraform's automated setup:

    shell
    terraform apply -target="null_resource.kubeconfig_setup"
    
    # Verify connectivity
    kubectl get nodes
  4. Deploy CRDs (Custom Resource Definitions)

    shell
    terraform apply -target="module.logscale.module.crds"
  5. Deploy Prerequisites (creates namespaces)

    shell
    terraform apply -target="module.logscale.module.logscale-prereqs"
  6. Deploy Kafka (optional)

    shell
    terraform apply -target="module.logscale.module.kafka"
  7. Deploy storage secret to log namespace

    shell
    terraform apply -target="kubernetes_secret_v1.azure_storage_key"
  8. Deploy LogScale (depends on prerequisites and storage secret)

    shell
    terraform apply -target="module.logscale.module.logscale"
  9. Complete any remaining resources

    shell
    terraform apply

This targeted deployment process ensures proper dependency management.

Total deployment time is typically 30-45 minutes, but deployment times vary based on:

  • Azure region capacity and provisioning time

  • AKS node pool creation and initialization

  • Container image pulls and startup times

  • SSL certificate generation via Let's Encrypt

  • The "advanced" cluster type creates 15 nodes across 6 specialized node pools