open-cluster-management-io / community

open-cluster-management governance material.
https://open-cluster-management.io
Apache License 2.0
62 stars 23 forks source link

New repository: multicloud-integrations: First content - Import ManagedClusters into Argo CD #92

Closed jnpacker closed 2 years ago

jnpacker commented 3 years ago

I would like to contribute a new kind/controller that references a Placement/PlacementDecision resource to import a ManagedCluster into Argo CD.

zychina commented 2 years ago

hello @jnpacker glad to see you again since worked on Bluemix local. For argoCD + OCM, it is great for online application on multiple clusters. Two questions:

  1. In the solution, there is controller watch placement rule and create ArgoCD cluster and import into ArgoCD namespace. I know ArgoCD working as a "push" mode. For each cluster, there is a cluster secret in ArgoCD namespace for cluster name and kubeconfig. The question is OCM working as a pull mode, how we can get each managed cluster kubeconfig ?
  2. If we got kubeconfig someway, then ArgoCD will work on push way, instead of using OCM manifestwork. Right ?

Thank you.

zychina commented 2 years ago
  1. could you pls show some user experience, what kind of argoCD application/applicationset look like ? for example, as developer I want to deploy application to two clusters which label with staging.
apphe commented 2 years ago

@jnpacker @mikeshng could you please help answer questions above? We can close the issue then. Thanks!

mikeshng commented 2 years ago

https://rcarrata.com/openshift/argo-and-acm/

Please see the above blog post about the Argo integration. Thanks. Since the repo has been created, closing the issue. Please open any further issues or questions in https://github.com/open-cluster-management-io/multicloud-integrations