Build Process

This section shows you how to build the reference architecture.

Prerequisites

Before starting the deployment, ensure you have the following:

  • Terraform 1.5.7+: For infrastructure deployment

  • kubectl 1.27+: For communicating with the Kubernetes cluster

  • Helm v3: Package manager for Kubernetes

  • Access to a Kubernetes cluster: With permissions to create and manage resources

Deployment Steps

Execute the following Terraform commands in sequence:

  1. Complete the Terraform Configuration steps.

  2. Configure the TFVAR_FILE environment variable:

    shell
    export TFVAR_FILE=/path/to/myfile.tfvars
  3. Initialize Terraform:

    shell
    terraform init
  4. Set the KUBECONFIG file:

    shell
    export KUBECONFIG=/path/to/kubeconfig

    This will be used later on to interact with the Kubernetes cluster.

  5. Deploy LogScale CRDs:

    shell
    terraform apply -target module.logscale.module.crds
  6. Deploy LogScale:

    shell
    terraform apply -target module.logscale
  7. Confirm the deployment was successful.

    You can run the following command to ensure pods are running:

    shell
    kubectl get pods -n logging

Exposing the LogScale service varies based on the Kubernetes setup. Some clusters might use a solution such as MetalLB, others might rely on reverse proxies and / or Node IPs.