Using Argo CD and Argo Apps to Deploy to Target Clusters
The best way to begin using and playing with your Argo CD instance is our working repository at https://github.com/opsverseio/microservices-argo-apps
This will deploy a sample microservices-based app to your target Kubernetes cluster
- You already have access to your own Kubernetes cluster (or a managed one like EKS, GKE, AKS etc.)
- You have an ArgoCD setup for which declarative, GitOps-based continuous deployment lifecycle is managed (if you don't have access to this, you may launch an OpsVerse DeployNow stack which provides a managed ArgoCD).
Via Argo CD UI (not shown) or CLI (shown here), you can:
or (if your Org only allows SSO access):
You may either fork this sample Git repo, or if you already have an existing repo, and add it to your Argo instance:
Ensure your kube context currently is on the cluster you want to add, and then you can run:
You may create an Argo app for whichever services you wish Argo CD deploy... e.g.,:
For example, running above for just myapp=emailservice and then checking your Argo instance should show the app created and healthy:
or, alternatively (instead of creating each app separately) if your destination cluster has Argo CD CRDs installed on it, you can use the App of Apps Pattern to create a single Argo Application which would, in turn, create all the child apps:
You may expand the Argo App to see all Kubernetes manifests synced to your target cluster: