The .NET SDK does not work with publically addressable Kubernetes clusters.
The first problem is that it tries to resolve the hostname in the config, even if that's not possible (due to not having access to the appropriate DNS):
If I add duff entries into the hosts file then it gets past this error and seems to bootstrap correctly, however operations will randomly fail.
Looking at why this is in the logs, it seems that the node locator is not being initialized correctly:
The reason that it works sometimes is because if the vbucket locator can't find the node it needs in the vbucket map, it picks a random one - https://github.com/couchbase/couchbase-net-client/blob/2.7.6/Src/Couchbase/Core/VBucket.cs#L73.
So if it happens to pick the 'right' node then the operation will succeed, otherwise it will fail.
|For Gerrit Dashboard: NCBC-1927|
|109050,4||NCBC-1927: Resolve vbucket server map endpoints if different from bucket config server list||release27||couchbase-net-client||Status: MERGED||+2||+1|
|111462,10||NCBC-2002: ServiceNotSupportedException: Data service not found||release27||couchbase-net-client||Status: MERGED||+2||+1|
|111507,2||Revert "NCBC-1927: Resolve vbucket server map endpoints if different from bucket config server list"||release27||couchbase-net-client||Status: MERGED||+2||+1|