azurekubernetes-ingressistioazure-aks

Istio Ingress does not work - only port forwarding works


enter image description hereI 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

After creating an istio gateway as -

**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"

Response: gateway.networking.istio.io/httpbin-gateway configured

when I try to view it as -

kubectl get gateway -n my-bookinfo 

I dont any resources back, instead I get - "No resources found"

What am I missing here? Should I not be able to see the gateway resources? I am not even sure that they got created. How do I validate it?


Solution

  • in this case the solution is to use the full resource api name:

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