I have Kubernetes cluster in DigitalOcean and there is a pod with gRPC server inside. I have gGRP client on my local machine. My client is written in go.
The goal is to connect gRPC client from my local machine to gRPC server inside DO k8s cluster.
I read this guide: https://kubernetes.io/docs/tasks/administer-cluster/access-cluster-services/
and tried to connect with this type of uri: http://kubernetes_master_address/api/v1/namespaces/namespace_name/services/[https:]service_name[:port_name]/proxy
Here is a part of my client code:
conn, err := grpc.Dial(addr, grpc.WithInsecure())
if err != nil {
glog.Fatalln("grpc.Dial()", err.Error())
}
But I got always get an error like this: transport: Error while dialing dial tcp: address ...