DeployNow
Advanced Deployment Options

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

Deploy a Code Repository using Argo CD

Assumptions

  • 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).

Usage

Via Argo CD UI (not shown) or CLI (shown here), you can:

Log into ArgoCD instance

Shell


or (if your Org only allows SSO access):

Shell


Add a Git Repository

You may either fork this sample Git repo, or if you already have an existing repo, and add it to your Argo instance:

Shell


Add Target Kubernetes Cluster

Ensure your kube context currently is on the cluster you want to add, and then you can run:

Shell


Create Argo Applications

You may create an Argo app for whichever services you wish Argo CD deploy... e.g.,:

Shell


For example, running above for just myapp=emailservice and then checking your Argo instance should show the app created and healthy:

Document image


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:

Shell


View Argo Apps

You may expand the Argo App to see all Kubernetes manifests synced to your target cluster:

App of Apps pattern
App of Apps pattern