Search…
Terraform
This method requires the use of Terraform's official Helm Provider
The topic explains how to use Terraform to install Traceable plaform agent in a Kubernetes environment. Make sure that Terraform is already installed before proceeding with installing traceable-agent. For more information on installing Terraform, see Download Terraform.

Setup

Complete the following steps to install traceable-agent. Make sure that traceableai namespace is already available.
    1.
    Download the latest traceable-agent Terraform archive.
    2.
    Untar the Terraform archive. Enter the latest version of the file that you downloaded in the following command:
1
tar -xvf traceable-agent-tf-k8s-<version>.tar.gz
Copied!
Terraform creates a terrafrom.tfstate file. The file stores the current state of the infrastructure. It is recommended to keep track of this file.
For example,
1
tar -xvf traceable-agent-tf-k8s-1.7.0.tar.gz
Copied!
3. Navigate to the folder that was extracted in step number 2. Substitute the version number as in step number 2.
1
cd traceable-agent-tf-k8s-<version>
Copied!
4. Create a traceableai namespace
5. Initialize the module by entering the following command:
1
terraform init
Copied!
6. Review the setup that will be installed by entering the following command. Fetch the <api-token> from Traceable's Onboarding UI page.
1
terraform plan -var='token=<api-token>'
Copied!
7. Apply the module by entering the following command:
1
terraform apply -var='token=<api-token>'
Copied!
Terraform creates a terrafrom.tfstate file. The file stores the current state of the infrastructure. It is recommended to keep track of this file.

Verify the installation

Enter the following command to verify a successful installation of traceable-agent:
1
kubectl get pods -n traceableai
Copied!
For example,
1
NAME READY STATUS RESTARTS AGE
2
traceable-agent-6df69c9886-lsfz4 1/1 Running 0 9m24s
Copied!
Last modified 2mo ago
Export as PDF
Copy link