I am trying to follow the instructions at https://istio.io/docs/guides/bookinfo/ and https://istio.io/docs/tasks/traffic-management/ingress/#determining-the-ingress-ip-and-ports to put istio on the minikube.
The pod and service seems up and running fine.
Then I export port and host
export INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="http")].nodePort}')
export SECURE_INGRESS_PORT=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.spec.ports[?(@.name=="https")].nodePort}')
export INGRESS_HOST=$(kubectl get po -l istio=ingressgateway -n istio-system -o 'jsonpath={.items[0].status.hostIP}')
From my understanding, the next step is to configure ingress with the istio gateway. In the below yaml, what's the hosts value should I put?
cat <<EOF | istioctl create -f -
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: book-gateway
spec:
selector:
istio: ingressgateway # use Istio default gateway implementation
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
-
EOF