Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

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
Contributor

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
Contributor

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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