@Paul Breton
How do I troubleshoot connectivity issues between AKS and PostgreSQL Flexible Server?
After checking the details the best will be to open a ticket with Support.
There are many elements to be reviewed for this type of integrations starting by
- Connection Pooling
- If the server is PostgreSQL - Single Server this in under the deprecation period and would be better to use Azure Database for PostgreSQL - Flexible Serve
- AV Zone should not be a meningful sittuation. Configurations
- Is necessary to review the error messages in PostgreSQL and AKS., as the timeouts can be triggered from any of the related resources.
- Is necessary to keep present latest Kubernetes versions are using cgroups v2 and exist limitations with JAVA versions
- Subnet DNS and CoreDNS resolution
- Grant Egress communication
https://learn.microsoft.com/en-us/azure/aks/outbound-rules-control-egress - Troubleshoot connection issues to pods or services within an AKS cluster (internal traffic)
https://learn.microsoft.com/en-us/troubleshoot/azure/azure-kubernetes/troubleshoot-connection-pods-services-same-cluster - How to check connectivity errors
https://supportability.visualstudio.com/AzureDBPostgreSQL/_wiki/wikis/AzureDBPostgreSQL/503215/How-to-check-connectivity-errors
If it is possible to get the error messages could be a good point for starting the investigation.
- Kubectl get events
- Kubectl describe pods
- Kubectl describe enpoints
- etc.
- Only difference is the agents sizes : "Standard_D2_v3" in test and "Standard_DS4_v2" in prod.
- Concerning PostgreSQL, they tested different configurations with the 4 components : AKS test (no AZ), AKS prod (no AZ), PG test (AZ 3) and PG prod (AZ 2).
- AKS test -> PG test : works perfectly
- AKS test -> PG prod : works perfectly
- AKS prod -> PG test : works perfectly AKS prod -> PG prod : works but with latency, timeouts and error.
To further troubleshoot this issue we're going to need to look at your resources in more detail. Please email the following to AzCommunity@microsoft.com and we'll get back to you promptly:
- Subject: "Attn: kobulloc - Additional support required"
- Email body: Your Subscription ID
- Email body: A link to this thread so we can validate and expedite the request
If you don't receive a response within 24 hours, please reply to the thread so we can investigate.