ODH Logo

Adding ArgoCD Applications

This repo contains all Operate First ArgoCD Applications.

Pre-requisites

  • You should have kustomize installed
  • You should be familiar with kustomize overlays
  • You should be familiar with what an ArgoCD application is.
  • You or your team should have been onboarded to ArgoCD, and have an ArgoCD project created. If you do not have one please request one for your team by filing this issue here.

Create an Application that deploys to a cluster

All our clusters belong to some environment. The list of our environments can be found here. Within each environment you will find a list of clusters. For example within moc environment, you will find clusters infra and zero. Pick one such cluster that you would like to deploy to. Assume you would like to deploy to cluster called ${CLUSTER_NAME} in environment ${ENV}. Then follow these steps:

  • See Argocd Docs for how to create an ArgoCD Application here.
  • Ensure that the spec.destination field in your Argocd Applicaiton matches the cluster name as it’s stored in ArgoCD. To get this value, you can search the metadata.name in the secrets found here. Or look at any of the other manifests in this repo and find the one that corresponds to ${CLUSTER_NAME}.
  • Ensure that your spec.project matches your team’s ArgoCD project.
  • Add your ArgoCD Application to envs/${ENV}/${CLUSTER_NAME}/{$PROJECT} where {$PROJECT} correlates with your team’s project.
  • Add this resource to the resource field list in envs/${ENV}/${CLUSTER_NAME}/{$PROJECT}/kustomization.yaml.