This repository was generated by a Terraform module to serve as a GitOps skeleton for managing Kubernetes applications with ArgoCD. It provides a base structure for defining, deploying, and maintaining your Kubernetes workloads via GitOps.
Once the Terraform module has output the skeleton files into a directory:
cd gitops-repo
git init
git remote add origin https://github.com/<your-org>/<your-repo>.git
git add .
git commit -m "Initial commit"Ensure you have the repo created within github and then push your commits into github
git push origin mainMake sure ArgoCD is installed and you have kubectl access to the cluster.
Apply the app.yaml file to create the ArgoCD Application resource:
kubectl apply -f app.yamlThis will register your Git repo with ArgoCD and begin syncing the defined workloads.
All application-specific configuration should live in the values.yaml file. To update the app:
- Edit
values.yamlin your GitHub repo. - Commit and push the changes:
git add values.yaml
git commit -m "Update application values"
git pushArgoCD will automatically detect the change (if auto-sync is enabled) and apply it to your cluster. Otherwise, you can sync manually via the ArgoCD UI or CLI:
To remove the ArgoCD application:
kubectl delete -f app.yaml