L。</p><pre><code class=language-bash data-expandlinks=true>$ kubectl create -f - &lt;&lt;EOF
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: simple-ingress
annotations:
  kubernetes.io/ingress.class: istio
spec:
rules:
- host: example.com
  http:
    paths:
    - path: /helloworld
      backend:
        serviceName: myservice
        servicePort: grpc
EOF
</code></pre><p>但是，以下的规则不能正常工作，因为在路径和 <code>ingress.kubernetes.io</code> 注释中使用了正则