Deployment Steps
Perform the following Terraform commands in sequence:
Complete the Terraform Configuration steps.
Configure the service account credentials:
export GOOGLE_APPLICATION_CREDENTIALS="/path/to/your/service-account-key.json"Set the LogScale license:
export TF_VAR_humiocluster_license=<your_logscale_license>Initialize Terraform:
terraform initDeploy the GCP infrastructure:
terraform apply -target module.vpc -target module.gkeThe GKE module will configure
kubectlcontext automatically. Update your localkubeconfigif needed:gcloud container clusters get-credentials <cluster-name> --zone <zone> --project <project-id>Deploy Pre-install Components:
terraform apply -target module.kubernetes_pre_installDeploy LogScale:
terraform apply -target module.logscaleObtain the load balancer IP address:
# Get the external IP address terraform output -raw gce-ingress-external-static-ipCreate 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: 300Confirm 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.