-
Notifications
You must be signed in to change notification settings - Fork 205
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
Bug/Help Needed: Private Endpoint Exposes only one NIC IP address #4464
Comments
Does the If so, can you use the new expressions feature to output all of the URLs/IPs you want to a configmap? If |
Any update @mehighlow ? |
@matthchr , @theunrepentantgeek status indeed contains all IP addresses and FQDNs.
I’ll create a PR once this is done. Thanks! |
I don't think you need to send us a PR, you should be able to do this purely in CEL expressions in your resource now. Here's an example So something like: spec:
operatorSpec:
configMapExpressions:
- name: my-configmap
key: global
value: self.status.customDnsConfigs.filter(config, matches(config.fqdn, "\w+.documents"))[0].ipAddresses[0]
- name: my-configmap
key: regional
value: self.status.customDnsConfigs.filter(config, matches(config.fqdn, "\w+-\w+.documents"))[0].ipAddresses[0] Note that you can avoid the If there may only be 1 (or 0), you'll need to guard against the |
Describe the bug
Private Endpoint Integration for CosmosDB exposes only one NIC IP address. However, a Private Endpoint for CosmosDB might create more than one NIC + IP address.
Automation can be leveraged to create just one DNS record for
PrimaryNicPrivateIpAddress
:although both IP addresses remain valid for establishing connections:
The issue arises using CosmosDB client (Azure SDK for .NET). By default, client has the
LimitToEndpointProperty
set tofalse
. This configuration instructs the SDK to automatically discover write and read regions and use them when the configured application region is unavailable. In my case, the application opted to use the regional FQDN, even though the endpoint connection was configured as global. This behavior can be addressed by setting theLimitToEndpointProperty
totrue
and ConnectionMode set to Gateway. But this adjustment requires knowing what to look for.Azure Service Operator Version: 2.9.0
Expected behavior
Both regional and global IP addresses are exposed, required FQDN records exposed.
To Reproduce
Deploy CosmosDB with Private Endpoint integration. Use the Azure SDK for .NET to establish a connection to the database with default settings. Observe that the client selects the regional endpoint, even though the supplied database FQDN is global.
Screenshots
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: