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 shared external AKS cluster #682

Merged
merged 8 commits into from
Aug 19, 2023
Merged

Support for shared external AKS cluster #682

merged 8 commits into from
Aug 19, 2023

Conversation

jsaun
Copy link
Contributor

@jsaun jsaun commented Jul 10, 2023

Networking fixes:
If a preexisting AKS cluster is supplied, query for the vnet it belongs to, create the postgresql PE to that vnet, and use the associated private dns zone if it exists.

Namespace Fixes:
Storage classes and persistent volume claims are not namespaced objects in Kubernetes. This prepends a namespace to the required objects to avoid conflicts in the case that multiple CoA instances are deployed into different namespaces on the same AKS cluster (customer ran into this need). Fixes #683

@BMurri
Copy link
Collaborator

BMurri commented Jul 10, 2023

@jsaun Please add an issue for this.

@jsaun jsaun changed the title Add namespace to storage class name Support for shared external AKS cluster Aug 17, 2023

if (!string.IsNullOrWhiteSpace(configuration.AksClusterName) && !configuration.UsePostgreSqlSingleServer)
{
throw new Exception("If providing an existing AKS cluster, --UsePostgreSqlSingleServer must be set to true.");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't single server being retired in 19 months?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll see, you still can't create private endpoint to a flexible postgres server. So if postgres is in our vnet and our services are running in AKS in another vnet, there's no good way to connect. We'd have to set postgres to public, or peer the vnets both of which are aren't ideal.

@jsaun jsaun merged commit f987e24 into main Aug 19, 2023
@jsaun jsaun deleted the jsaun/namespace-fixes branch August 19, 2023 00:16
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

Successfully merging this pull request may close these issues.

Add CoA namespace to storage classes and volumes names.
2 participants