This repository contains Terraform configuration files to deploy ArgoCD on a Kubernetes cluster.
file.tf
: Terraform configuration file defining the Kubernetes resources required for ArgoCD deployment.terraform.tfvars
: Terraform variables file containing values for customization.vars.tf
: Terraform variables definition file.
You can customize the deployment by modifying the variables in the terraform.tfvars
file. The variables include cluster name, namespace name, secret and config map names, deployment and service names, image version, ports, and other configuration options.
- A Kubernetes cluster configured and accessible from your local machine.
- Terraform installed on your local machine.
- Proper permissions to create resources in the Kubernetes cluster.
-
Clone the repository: $ git clone https://github.com/NashTech-Labs/deploy_kubernetes_on_argocd_with_terraform.git
-
Navigate to the repository: $ cd deploy_kubernetes_on_argocd_with_terraform
-
Review and customize variable values in terraform.tfvars.
-
Initialize Terraform: $ terraform init
-
Generate and review the Terraform plan: $ terraform plan
-
Apply the Terraform configuration: $ terraform apply
-
To destroy the deployed resources, run: $ terraform destroy