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

Support for provisioning resources to different subscriptions #4284

Open
old-guy-coder opened this issue Sep 19, 2024 · 1 comment
Open

Support for provisioning resources to different subscriptions #4284

old-guy-coder opened this issue Sep 19, 2024 · 1 comment
Labels
waiting-on-user-response Waiting on more information from the original user before progressing.

Comments

@old-guy-coder
Copy link

Describe the current behavior
A description of how things are today.

Current behavior is that any Azure resources created in the cluster will be created in the same subscription, we need a way to provision resources across multiple subscriptions to deal with Azure resource limits per subscription (f.e. SQL Server, SQL Database.

Describe the improvement
How should things be changed or improved?

Would like to see the support to be able to specify which subscription a resource could be provisioned in, this would require a managed identity with permissions over the subscriptions and then we would need a way through annotations to specify which subscription we want the resources deployed into, for example in an overflow scenario.

Additional context
Add any other context about the suggested improvement.

@theunrepentantgeek
Copy link
Member

ASO already supports deploying resources across multiple subscriptions, by using scoped credentials.

The most usual approach is to create a credential with namespace scope - this will be used for all ASO resources in that cluster namespace. One of the fields in a credential is the AZURE_SUBSCRIPTION for which the credential is to be used (see Credential Format).

Alternatively, you can apply the annotation serviceoperator.azure.com/credential-from to any ASO resource to specify which credential should be used, allowing you to freely distribute resources across multiple subscriptions within a single cluster namespace.

@theunrepentantgeek theunrepentantgeek added waiting-on-user-response Waiting on more information from the original user before progressing. and removed needs-triage 🔍 labels Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-on-user-response Waiting on more information from the original user before progressing.
Projects
Development

No branches or pull requests

2 participants