Using the Terraform Helm Provider to install Artifactory in Kubernetes.
- The variables.tf contains the different variables configurable in this example.
- The providers.tf contains the terraform providers needed for this example.
- The main.tf file has the configuration that Terraform will use to install Artifactory with Helm.
The artifactory-values.yaml file has the values that Helm will use to configure the Artifactory installation.
The artifactory-license-template.yaml file has the license key(s) template that you will need to copy to a artifactory-license.yaml
file.
cp artifactory-license-template.yaml artifactory-license.yaml
If you plan on skipping the license key(s) for now, you can leave the artifactory-license.yaml
file empty. Terraform will create an empty one for you if you don't create it.
- Initialize the Terraform configuration by running the following command
terraform init
- Plan the Terraform configuration by running the following command
terraform plan
- Apply the Terraform configuration by running the following command
# Run the following command to create the resources
terraform apply
# Run with a custom value to one of the variables
terraform apply -var 'artifactory_version=7.98.9'
- When you are done, you can destroy the resources by running the following command
terraform destroy