Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ivan-cai opened this issue May 6, 2022 · 2 comments
Assignees

Comments

@ivan-cai
Copy link
Contributor

ivan-cai commented May 6, 2022

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?

@mikeshng
Copy link
Member

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

/assign mikeshng

@mikeshng
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants