multicloud-operators-subscription icon indicating copy to clipboard operation
multicloud-operators-subscription copied to clipboard

How can we distribute an application locally to hub cluster by subscription?

Open ivan-cai opened this issue 3 years ago • 2 comments
trafficstars

I register Hub Cluster to itself, as "cluster-local". I want to distribute an application from github to some Managed Clusters and Hub Cluster by subscription. But, If I create Subscription CR with placement which contains "cluster-local" in Hub Cluster, the parent Subscription CR will be overrode to Subscription with local placement. After overriding, if I update the application yaml in github, subscription will can not reconcile the change to Managed Clusters.

I see ACM can distribution an application locally to hub cluster. So, @qiujian16 @mikeshng Could you give me some advice?

ivan-cai avatar May 06 '22 08:05 ivan-cai

Sorry, I just saw this issue. I will look into this by the end of this week.

/assign mikeshng

mikeshng avatar Jul 13 '22 19:07 mikeshng

In ACM, we run a separate a subscription pod with standalone mode on. https://github.com/open-cluster-management-io/multicloud-operators-subscription#stand-alone-deployment

Then for the subscription in the hub the placement should be just "local": https://github.com/open-cluster-management-io/multicloud-operators-subscription/blob/main/examples/helmrepo-channel/02-subscription.yaml#L9

Just a note on the hub cluster, you shouldn't have the app addon and the standalone subscription pod running competing against each other.

mikeshng avatar Jul 18 '22 13:07 mikeshng