Skip to content

felipelaptrin/kubernetes-gitops-argocd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes Bootstrap ArgoCD

How to run the project

  1. Install dependencies with Mise
mise install
  1. Adjust backend and vars file in config/dev/us-east-1.tfvars folder

  2. Export AWS credentials related to the account you would like to deploy

  3. Initialize Terraform

cd src/
mise run init-dev
  1. Deploy initial infrastructure
mise run apply-dev-bootstrap

The infrastructure needs to be deployed in a two-phase process when using Terraform. This is a limitation of the Kubernetes provider for Terraform, since it's required to have an EKS cluster provisioned before using the provider.

  1. Deploy the rest of the infrastructure
mise run apply-dev

From now on, no need to run bootstrap anymore! Every future deployment can run directly mise run apply-dev.

  1. Add Deploy key to GitHub Repository

The Terraform created the SSH key to be used by ArgoCD in order to pull the repository (if it's private). Basically you should copy the output of argocd_deploy_public_key and add it as a Deploy Key in your repository.

About

A demo for my blog post about how to bridge the gap between Terraform and ArgoCD

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages