Skip to content

adonisgarciac/acm-gitops-modes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

acm-gitops-modes

Prerequisites

  • 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

Create ACM needed resources

Global

Global objects (placement, gitopscluster and managedclustersetbinding) are for push mode. It will include configuration for hub cluster as an additional managed cluster.

  1. Placement
    oc apply -f acm/acm_global_placement.yaml
  1. ManagedClusterSetBinding to bind openshift-gitops with global placement
    oc apply -f acm/acm_global_managedclustersetginding.yaml
  1. ACM GitOps cluster for global placement
    oc apply -f acm/acm_global_gitopscluster.yaml

ManagedCluster

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.

  1. Placement
    oc apply -f acm/acm_managedcluster_placement.yaml
  1. ManagedClusterSetBinding to bind openshift-gitops with global placement
    oc apply -f acm/acm_managedcluster_managedclustersetginding.yaml

Create ArgoCD needed resources

Every managed cluster (except HUB cluster)

  1. ACM project in ArgoCD
    oc apply -f argocd/argocd_acm_project.yaml
  1. hello-world namespace
    oc apply -f argocd/argocd_helloworld_ns.yaml

HUB cluster

  1. ACM project in ArgoCD
    oc apply -f argocd/argocd_acm_project.yaml
  1. hello-world namespace
    oc apply -f argocd/argocd_helloworld_ns.yaml
  1. Init ArgoCD app which will create appsets
    oc apply -f argocd/argocd_init_app.yaml

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published