Does gRPC proxy works under minikube?

I’m trying to learn how to run gRPC service following this guide:

There are quick steps easy to reproduce:

minikube start --driver=kvm2
kubectl create -f
export PROXY_IP=$(minikube ip)
export PROXY_PORT=$(kubectl get services/kong-proxy -n kong -o go-template='{{(index .spec.ports 0).nodePort}}')
kubectl apply -f
echo "apiVersion: extensions/v1beta1
kind: Ingress
  name: demo
  - http:
      - path: /
          serviceName: grpcbin
          servicePort: 9001" | kubectl apply -f -
kubectl patch ingress demo -p '{"metadata":{"annotations":{"":"grpc,grpcs"}}}'
kubectl patch svc grpcbin -p '{"metadata":{"annotations":{"":"grpcs"}}}'
grpcurl -v -d '{"greeting": "Kong Hello world!"}' -insecure $PROXY_IP:$PROXY_PORT hello.HelloService.SayHello

What I see is:

Failed to dial target host “”: tls: first record does not look like a TLS handshake

If I try grpcurl with -plaintext instead of -insecure, it says:

Failed to dial target host “”: context deadline exceeded

Can someone explain please if it is possible to play with gRPC using minikube or should I try some different installation?

When I do a fresh try but use annotations without grpcs , it changes nothing:

kubectl patch ingress demo -p '{"metadata":{"annotations":{"":"grpc"}}}'
kubectl patch svc grpcbin -p '{"metadata":{"annotations":{"":"grpc"}}}'

© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ