Terraform
- 01 Dec 2021
- 1 Minute to read
-
Print
Terraform
- Updated on 01 Dec 2021
- 1 Minute to read
-
Print
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.
- Download the latest
traceable-agent
Terraform archive. - Untar the Terraform archive. Enter the latest version of the file that you downloaded in the following command
tar -xvf traceable-agent-tf-k8s-<version>.tar.gz
Note:
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,
tar -xvf traceable-agent-tf-k8s-1.7.0.tar.gz
- Navigate to the folder that was extracted in step number 2. Substitute the version number as in step number 2.
cd traceable-agent-tf-k8s-<version>
- Create a
traceableai
namespace - Initialize the module by entering the following command:
terraform init
- Review the setup that will be installed by entering the following command. Fetch the
<api-token>
from Traceable's Onboarding UI page.
terraform plan -var='token=<api-token>'
- Apply the module by entering the following command:
terraform apply -var='token=<api-token>'
Note:
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:
kubectl get pods -n traceableai
For example,
NAME READY STATUS RESTARTS AGE
traceable-agent-6df69c9886-
Was this article helpful?