/je-task

Primary LanguageMustache

rancher-task

This project uses Terraform to deploy ArgoCD on a K3s cluster deployed using Rancher on VirtualBox

Repository structure

The rancher/ directory contains the argocd configurations The helm-chart/ directory contains the bonus helm chart The terraform/ directory contains the terraform files to install argocd and apply the argocd configurations in the rancher/ directory

Pre-requisites

  1. Two VirtualBox VMs
  2. Rancher installed in the first VM
  3. K3s cluster installed on the second VM using Rancher
  4. Terraform installed on the second VM

Running the project

  1. clone the repository
  2. cd into the terraform/ directory and run
     terraform init
  1. Run
     terraform plan
  1. Run
    terraform apply -auto-approve

Note: in the terraform/providers.tf file, you can change the path to your kubeconfig file.

Also note: if you're using the default k3s kube config path, ensure you update the permissions

Run the following command to get the argocd initial admin password

     kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d