This repository is used to configure the myriad OpenShift clusters I deploy in my lab using Argo CD.
Directory | Description |
---|---|
ansible/ | All Ansible Content |
manifests/ | Common Configuration |
manifests/bootstrap | Deployment of OpenShift GitOps Operator and Argo CD |
manifests/clusters/<cluster-name> | Cluster Specific Configuration |
manifests/clusters/<cluster-name>/argocd/apps/<cluster-name> | Cluster Bootstrap |
manifests/clusters/<cluster-name>/argocd/apps/cluster | Initial Base Application to Deploy other Applications |
Argo CD will be deployed using the OpenShift GitOps operator. Install the operator as follows:
oc apply -k manifests/bootstrap/openshift-gitops-operator/base
By default, the operator will deploy an instance of Argo CD when it is installed. We will want to make some changes to that deployment though (like enable OpenShift OAuth ingegration).
oc apply -k manifests/bootstrap/openshift-gitops/base
Finally, we can configure our cluster by deploying the base application (app of apps methodology). The base application will in turn deploy all other applications/configurations.
oc apply -k manifests/clusters/<cluster-name>/argocd/apps/<cluster-name>/base