This repo contains the material to deploy the headquarter and warehouse argoCD applications.
For this lab, everything will be deployed in the same cluster :
- headquarter will be deployed in the headquarter namespace
- 10 warehouses namespaces are being deployed
Deploy ArgoCD, cluster-wide subscriptions and create namespaces (in the gitops version we have now, we can't add labels when they are created by ArgoCD)
oc apply -f gitops/sub.yaml
oc apply -f gitops/ns.yaml
oc apply -f gitops/rbac.yaml
Create the argoCD headquarter project
oc apply -f headquarter/argocd/project.yaml
Create the argoCD Application
oc apply -f headquarter/argocd/application.yaml
Create the argoCD warehouse project
oc apply -f warehouse/argocd/project.yaml
Create the argoCD ApplicationSet (as we are deploying 10 or more namespaces within the cluster)
oc apply -f warehouse/argocd/applicationSet.yaml