client-rust icon indicating copy to clipboard operation
client-rust copied to clipboard

add config to solve by custom dns server

Open Smityz opened this issue 2 years ago • 4 comments

solve: https://github.com/tikv/client-go/issues/829

I have provided a tool for client-rust that allows for the customization of DNS server addresses. This way, by only exposing the coreDNS address of the k8s cluster, it is possible to achieve client access to tikv across k8s clusters.

Smityz avatar Aug 09 '23 10:08 Smityz

The DNS/cloud/k8s should be transparent to tikv's client. It could be done by the outer code who is the caller of the client.

andylokandy avatar Dec 18 '23 08:12 andylokandy

Users can modify system settings to use the correct DNS address, but it requires root permission and not inconvenient.

Smityz avatar Dec 18 '23 08:12 Smityz

The client user must be another rust code that are using the client. So that there is room for such customization without needing root permission. e.g. Resolve the dns then pass ip to the tikv client

andylokandy avatar Dec 18 '23 09:12 andylokandy

When TiKV runs on Kubernetes, PD stores the domain of the TiKV node instead of its IP address. Therefore, this function must be configured in the client.

Smityz avatar Dec 18 '23 10:12 Smityz