{"id":23507378,"url":"https://github.com/k-candidate/argocd-demo-install","last_synced_at":"2025-07-17T03:08:58.705Z","repository":{"id":216719292,"uuid":"742140586","full_name":"k-candidate/argocd-demo-install","owner":"k-candidate","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-03T19:48:23.000Z","size":158,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-12T17:24:50.626Z","etag":null,"topics":["argo","argo-cd","argocd","autoscaling","cost","cost-optimization","finops","gitops","grafana","k8s","keda","keda-http-add-on","kubernetes","monitoring","opencost","prometheus"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/k-candidate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-01-11T20:59:36.000Z","updated_at":"2024-02-04T23:56:51.000Z","dependencies_parsed_at":"2024-01-12T08:15:12.545Z","dependency_job_id":"859983aa-4095-47cb-ba37-d15396c21e56","html_url":"https://github.com/k-candidate/argocd-demo-install","commit_stats":null,"previous_names":["k-candidate/argocd-demo-install"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/k-candidate/argocd-demo-install","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-candidate%2Fargocd-demo-install","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-candidate%2Fargocd-demo-install/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-candidate%2Fargocd-demo-install/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-candidate%2Fargocd-demo-install/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k-candidate","download_url":"https://codeload.github.com/k-candidate/argocd-demo-install/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-candidate%2Fargocd-demo-install/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265562355,"owners_count":23788512,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["argo","argo-cd","argocd","autoscaling","cost","cost-optimization","finops","gitops","grafana","k8s","keda","keda-http-add-on","kubernetes","monitoring","opencost","prometheus"],"created_at":"2024-12-25T10:18:28.384Z","updated_at":"2025-07-17T03:08:58.676Z","avatar_url":"https://github.com/k-candidate.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# argocd-demo-install\n\n## Bootstrapping\n\n- Create a dir to work in\n```\n$ mkdir -p charts/argo-cd\n```\n\n- Make the Chart in `charts/argo-cd/Chart.yaml`\n\n- Override the chart values with `charts/argo-cd/values.yaml`\n\n- Make the Chart lock and the tgz necessary for the bootstrap installation\n```\n$ helm repo add argo-cd https://argoproj.github.io/argo-helm\n$ helm dep update charts/argo-cd/\n```\n\n- Exclude that from repo\n```\n$ echo \"charts/**/charts\" \u003e\u003e .gitignore\n```\n\n- Create a namespace for argocd\n```\n$ kubectl create ns myargo\n```\n\n- Bootstrap: First installation manual\n```\n$ helm install argo-cd charts/argo-cd/ -n argocd\n```\n\n- Port-forward to access the web ui\nThis is just for demos. In a real env, hook it to an ALB, give it SSL/TLS termination, and set DNS for it\n```\n$ kubectl port-forward svc/argo-cd-argocd-server 8080:443 -n argocd\n```\n\n- Username is admin. Get password:\n```\n$ kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath=\"{.data.password}\" | base64 -d\n```\n\n## Have ArgoCD manage itself\n\n- Now we prepare the root-app\n```\n$ mkdir -p charts/root-app/templates\n$ touch charts/root-app/values.yaml\n```\n\n- We make the chart: `charts/root-app/Chart.yaml`\n\n- We make the app manifest for our root app in `charts/root-app/templates/root-app.yaml`\n\n- The first time we manually apply the manifest. Later it will be automatic\n```\n$ helm template charts/root-app/ | kubectl apply -f -\n```\n\n- In the Web ui we verify that the root-app was created\n\n- We make a manifest for argocd so that it can manage itself: `charts/root-app/templates/argo-cd.yaml`\n\n- In the web ui we verify that argocd now appears as an app\n\n## Use ArgoCD\n\n- Now we can add all the apps we want to `charts/root-app/templates/`\n\n![Screenshot of the final result](/docs/assets/images/final_result.png)\n\n- The apps in the screenshot above are from: https://github.com/k-candidate/hello-k8s and https://github.com/k-candidate/hello-prod\n\n## TO DO:\n- [ ] Project templates to group apps depending on teams, repos, destinations (cluster/ns), object restriction, roles (rbac).\n- [ ] Use a policy engine like OPA Gatekeeper (does not allow resource mutation) or Kyverno (does allow for mutation, but still incubating)\n- [x] Add KEDA for Autoscaling.\n- [x] Add KEDA HTTP Add-on.\n- [x] Add Prometheus.\n- [x] Add Grafana.\n- [x] Add OpenCost.\n- [ ] Migrate to a cluster instead of Minikube as I already hit the ceiling (of default minikube) after adding KEDA, and Prometheus.\n- [ ] Use HA for argocd. Requires 3 nodes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk-candidate%2Fargocd-demo-install","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk-candidate%2Fargocd-demo-install","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk-candidate%2Fargocd-demo-install/lists"}