This project uses Terraform to deploy ArgoCD on a K3s cluster deployed using Rancher on VirtualBox
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
- Two VirtualBox VMs
- Rancher installed in the first VM
- K3s cluster installed on the second VM using Rancher
- Terraform installed on the second VM
- clone the repository
- cd into the terraform/ directory and run
terraform init
- Run
terraform plan
- 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