Skip to content

Latest commit

 

History

55 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

  1. Get ArgoCD Admin Password
mise run update-kubeconfig
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
  1. Access ArgoCD UI

The URL will be argocd.<DOMAIN>, where the domain is the domain set in the config/dev/us-east-1.tfvars file.

Use username admin and password the value you got from the previous step (STEP 8)

About

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

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages