Deployment Steps

Perform the following Terraform commands in sequence:

  1. Complete the Terraform Configuration steps.

  2. Configure the service account credentials:

    export GOOGLE_APPLICATION_CREDENTIALS="/path/to/your/service-account-key.json"
  3. Set the LogScale license:

    export TF_VAR_humiocluster_license=<your_logscale_license>
  4. Initialize Terraform:

    terraform init
  5. Deploy the GCP infrastructure:

    terraform apply -target module.vpc -target module.gke
  6. The GKE module will configure kubectl context automatically. Update your local kubeconfig if needed:

    gcloud container clusters get-credentials <cluster-name> --zone <zone> --project <project-id>
  7. Deploy Pre-install Components:

    terraform apply -target module.kubernetes_pre_install
  8. Deploy LogScale:

    terraform apply -target module.logscale
  9. Obtain the load balancer IP address:

    # Get the external IP address
    terraform output -raw gce-ingress-external-static-ip
  10. Create DNS A record in your DNS provider using the following information:

    Name: Your subdomain (e.g., logscale)
    Type: A
    Value: The external IP address from terraform output
    TTL: 300
  11. Confirm the deployment was successful. You can run the following commands to ensure pods are running:

    kubectl get pods -n logging

Alternatively, access the LogScale cluster at the configured URL: https://<public_url>, using the default credentials of username admin and using the password retrieve from the Kubernetes secret.