-
Install tools:
make install-tools
-
Create a credentials file here:
creds/repo-creds.yml
apiVersion: v1 kind: Secret metadata: name: private-repo-creds namespace: argocd labels: argocd.argoproj.io/secret-type: repo-creds stringData: type: git url: https://github.com/<org-or-username> username: <username> password: <token>
-
Start the cluster
make start
-
Now apply your ArgoCD Applications. Only you know what should be applied.
-
Wait until apps are synced and healthy.
-
Replace all the ingress addresses:
make replace-all-hostnames path-to-root=<repo-parent> path-to-repo=<path-to-repo> domain=<the-domain-you-want-replaced>
example:
make replace-all-hostnames path-to-root=".." path-to-repo="cloud-infra-deployment" domain="dagandersen.com"
if you repo looks like this├── this repo └── cloud-infra-deployment ├── yaml1.yml ├── yaml2.yml └── yaml3.yml
-
make your changes to your gitops-synced-repo and run
make update path-to-root=<repo-parent> path-to-repo=<path-to-repo>
-
Done. Your local changes should now be applied to the cluster.