The work here assumes you have a Kubernetes cluster with kubectl
installed and configured to this cluster.
The main.tf file has the configuration that Terraform will use to create the Nginx in the Kubernetes cluster.
This example also has a commented out snippet of using Artifactory as the Terraform backend.
- 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
terraform apply
- When you are done, you can destroy the resources by running the following command
terraform destroy