- Two or more OCP clusters installed.
- Red Hat ACM working in one cluster (operator and MultiClusterHub installed).
- Red Hat OpenShift GitOps installed in every cluster with an ArgoCD instance.
- Rest of clusters attached to RH ACM as managed clusters. One of them must have cluster1 as name.
- Rest of clusters are part of the managedcluster ClusterSet in RH ACM. We can create managedcluster ClusterSet using acm/acm_managedclusterset.yaml. Launch following command in ACM cluster:
oc apply -f acm/acm_managedclusterset.yaml
Global objects (placement, gitopscluster and managedclustersetbinding) are for push mode. It will include configuration for hub cluster as an additional managed cluster.
- Placement
oc apply -f acm/acm_global_placement.yaml
- ManagedClusterSetBinding to bind openshift-gitops with global placement
oc apply -f acm/acm_global_managedclustersetginding.yaml
- ACM GitOps cluster for global placement
oc apply -f acm/acm_global_gitopscluster.yaml
ManagedCluster objects (placement, gitopscluster and managedclustersetbinding) are for pull mode. It is not possible to use pull mode for global placement if hub cluster is part of managed clusters.
- Placement
oc apply -f acm/acm_managedcluster_placement.yaml
- ManagedClusterSetBinding to bind openshift-gitops with global placement
oc apply -f acm/acm_managedcluster_managedclustersetginding.yaml
- ACM project in ArgoCD
oc apply -f argocd/argocd_acm_project.yaml
- hello-world namespace
oc apply -f argocd/argocd_helloworld_ns.yaml
- ACM project in ArgoCD
oc apply -f argocd/argocd_acm_project.yaml
- hello-world namespace
oc apply -f argocd/argocd_helloworld_ns.yaml
- Init ArgoCD app which will create appsets
oc apply -f argocd/argocd_init_app.yaml