-
Notifications
You must be signed in to change notification settings - Fork 225
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
How to use SDK to access RawKV from outside the k8s cluster? #829
Comments
I am not familiar with k8s, but I think maybe you can bind a domain name for each tikv node and PD node so that they can be accessed from outside the k8s cluster. However, exposing internal addresses may raise security concerns. A safer approach may be to start a rawkv proxy service within the k8s cluster to forward rawkv requests. |
Currently, we are using proxy forwarding, but it is not suitable for scenarios with high-performance requirements and limited resources. |
This idea sounds interesting to me. I did some research and found that grpc provides the ability to customize name resolver functions (https://github.com/grpc/grpc-go/blob/master/examples/features/name_resolving/README.md) If possible, I think we can add an option to the client to support a custom name resolver. |
If your TiKV is accessbile from a K8 cluster: https://mirrord.dev/ |
We have deployed a TiKV cluster on k8s, which can only be accessed from within the k8s cluster. In order to enable access to the TiKV cluster from outside the k8s cluster, we need to configure CoreDNS resolution on each client machine, but this is not elegant. Is there a way to specify the DNS for accessing the k8s internal cluster through the application layer?
Can we implement DNS resolution within the SDK without modifying the system's DNS settings? Would this be a good approach?
This issue is moved by pingcap/tidb-operator#5051
The text was updated successfully, but these errors were encountered: