Istio Ingress does not work - only port forwarding works

9/25/2019

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?

-- zooes
azure
azure-aks
azure-kubernetes
istio
kubernetes-ingress

1 Answer

9/25/2019

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

kubectl get gateway.networking.istio.io -n my-bookinfo 
-- 4c74356b41
Source: StackOverflow