Inter-kubernetes networking with vpc-cni and external DNS

I’m running vpc-cni where my pods take on externally reachable IP addresses. I note that this is referenced here: Couchbase Networking | Couchbase Docs.

A problem arises when using exposedFeatures with networking.dns.domain. The couchbase-ui service gets annotated for external DNS, but since this is a nodegroup, it doesn’t correctly give the IP addresses of the pods, but instead gives the addresses of the hosts, which won’t work. Manually annotating the couchbase service instead gives the IP’s of the pods, but it would be nice if there were a way to have the annotation handled by the operator. I don’t see any other way of doing it when using vpc-cni

Hello David,

You can add annotations for the services via the couchbasecluster.spec.networking.exposedFeatureServiceTemplate property.
CouchbaseCluster Resource | Couchbase Docs