concept Gateway resource in category microservice

appears as: Gateway resource, The Gateway resource
Microservices Security in Action

This is an excerpt from Manning's book Microservices Security in Action.

Finally, to enable TLS at the Ingress gateway, we need to define a Gateway resource. This resource, introduced by Istio, instructs the load balancer on how to route traffic to the Istio Ingress gateway. You can find more details on the Gateway resource in appendix K. Since the Ingress gateway is running in the istio-system namespace, we also create the Gateway resource in the same namespace. Ideally, you need to have only one Gateway resource for your Kubernetes cluster. That is only a common practice. Another practice is to have a Gateway resource in every namespace, but all of them pointing to the same Istio Ingress gateway Pod running in the istio-system namespace.

Listing 12.2 shows the definition of the Gateway resource. The ecomm-gateway Gateway resource instructs the load balancer to route traffic on HTTPS port 443 and HTTP port 80 to the Istio Ingress gateway Pod, which is an Envoy proxy.

Listing 12.2 The definition of the Gateway resource with no SDS

The VirtualService resource, introduced by Istio, instructs the corresponding Istio Gateway on how to route traffic to the corresponding Kubernetes Service. A Kubernetes Service (which we discussed in detail in appendix J) is an abstraction over one or more Pods, while an Istio VirtualService is an abstraction over one or more Kubernetes Services. It’s quite similar to the Kubernetes Ingress resource that we discuss in appendix J, and the Gateway resource that we discussed in section K.10.1 is quite similar to the Kubernetes Ingress controller.