Istio Ingress 不工作——只有端口转发工作

Istio Ingress does not work - only port forwarding works

I am trying to follow the istio docs on deploying the bookinfo app and setting up ingress controllers at - https://istio.io/docs/tasks/traffic-management/ingress/ingress-control/#determining-the-ingress-ip-and-ports

创建 istio 网关后 -

**kubectl apply -n my-bookinfo -f gateway.yaml**

apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
  name: httpbin-gateway
spec:
  selector:
    istio: ingressgateway # use Istio default gateway implementation
  servers:
  - port:
      number: 80
      name: http
      protocol: HTTP
    hosts:
    - "httpbin.example.com"

响应:gateway.networking.istio.io/httpbin-gateway 配置

当我尝试将其视为 -

kubectl get gateway -n my-bookinfo 

我没有返回任何资源,而是得到 - “未找到资源

我在这里错过了什么?我应该看不到网关资源吗?我什至不确定它们是否已创建。我如何验证它?

在这种情况下,解决方案是使用完整资源 api 名称:

kubectl get gateway.networking.istio.io -n my-bookinfo