: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
metadata:
  name: reviews
spec:
  parentRefs:
  - kind: Service
    name: reviews
    port: 9080
  rules:
  - backendRefs:
    - name: reviews-v1
      port: 9080
EOF
</code></pre></div></div></div></li></ol><ol start=2><li>使用以下命令显示已定义的路由：</li></ol><div id=tabset-zhdocstaskstraffic-managementrequest-routing-2 role=tablist class=tabset><div class=tab-strip data-category-name=config-api><button aria-selected=true data-category-v