Skip to content

Latest commit

 

History

History

2.kubernetes-nginx

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Nginx In Kubernetes Example

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.

  1. Initialize the Terraform configuration by running the following command
terraform init
  1. Plan the Terraform configuration by running the following command
terraform plan
  1. Apply the Terraform configuration by running the following command
terraform apply
  1. When you are done, you can destroy the resources by running the following command
terraform destroy