Creating an ApplicationSet-based application
Before you begin
- Ensure that the Red Hat OpenShift GitOps operator is installed on all three clusters: Hub cluster, Primary managed cluster and Secondary managed cluster. For instructions, see https://docs.redhat.com/en/documentation/red_hat_openshift_gitops/1.12/html-single/installing_gitops/index#installing-gitops-operator-in-web-console_installing-openshift-gitops.
- On the Hub cluster, ensure that both Primary and Secondary managed clusters are registered to
GitOps. For registration instructions, see Registering managed clusters to GitOps. Then check if the
Placement used by
GitOpsCluster
resource to register both managed clusters, has the tolerations to deal with cluster unavailability. You can verify if the following tolerations are added to the Placement using the command.oc get placement <placement-name> -n openshift-gitops -o yaml.
In case the tolerations are not added, see Configuring application placement tolerations for Red Hat Advanced Cluster Management and OpenShift GitOps.tolerations: - key: cluster.open-cluster-management.io/unreachable operator: Exists - key: cluster.open-cluster-management.io/unavailable operator: Exists
- Ensure that you have created the
ClusterRoleBinding
yaml on both the Primary and Secondary managed clusters. For instruction, see the Prerequisites chapter in RHACM documentation.