Managing Ingress using the Istio Gateway
When managing Ingress, it is recommended to make use of Istio Gateway over the Kubernetes Ingress resource. Istio Gateway is like a load balancer running at the edge of the mesh receiving incoming HTTP and TCP connections.
When configuring Ingress via Istio Gateway, you need to perform the following tasks.
Creating the gateway
The following code block creates an Istio Gateway resource:
apiVersion: networking.istio.io/v1alpha3 kind: Gateway metadata: name: chapter4-gateway namespace: chapter4 spec: selector: istio: ingressgateway servers: - port: number: 80 name: http protocol: HTTP hosts: - "sockshop.com" - "mockshop.com"
Here, we are declaring a Kubernetes...