http2或grpc前缀istio

我可以see应该可以将服务作为handel grpc的前缀 . 它不是很清楚,但看起来它应该是你应该加前缀的服务 .

我做了以下工作,没有成功:

---

apiVersion: v1
kind: Service
metadata:
  name: http2-service
spec:
  # type: LoadBalancer
  selector:
    app: gcd-test
  ports:
  - name: "grpc"
    port: 3000
    protocol: TCP
    targetPort: 3000

---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: http2-ingress
  annotations:
    kubernetes.io/ingress.class: "istio"
spec:
  rules:
  - http:
      paths:
      - path: /hw/.*
        backend:
          serviceName: http2-service
          servicePort: 3000

信息:

grpc_cli ls localhost/hw
错误:
Received an error when querying services endpoint.

kubectl describe ingress http2-ingress                                     
Name:             http2-ingress
Namespace:        default
Address:          localhost
Default backend:  default-http-backend:80 (<none>)
Rules:
  Host  Path  Backends
  ----  ----  --------
  *     
        /hw/.*   http2-service:3000 (<none>)
Annotations:
Events:  <none>