OpenShift Serverless supports the following two ingress solutions:
Kourier
Istio using Red Hat OpenShift service Mesh
The default is Kourier.
Kourier is the default ingress solution for OpenShift Serverless. It has the following properties:
It is based on envoy proxy.
It is simple and lightweight.
It provides the basic routing functionality that Serverless needs to provide its set of features.
It supports basic observability and metrics.
It supports basic TLS termination of Knative service routing.
It provides only limited configuration and extension options.
Using Istio as the ingress solution for OpenShift Serverless enables an additional feature set that is based on what Red Hat OpenShift service Mesh offers:
Native mTLS between all connections
Serverless components are part of a service mesh
Additional observability and metrics
Authorization and authentication support
Custom rules and configuration, as supported by Red Hat OpenShift service Mesh
However, the additional features come with a higher overhead and resource consumption. For details, see the Red Hat OpenShift service Mesh documentation.
See the "Integrating service Mesh with OpenShift Serverless" section of Serverless documentation for Istio requirements and installation instructions.
Regardless of whether you use Kourier or Istio, the traffic for a Knative service is configured in the knative-serving
namespace by the net-kourier-controller
or the net-istio-controller
respectively.
The controller reads the Knativeservice
and its child custom resources to configure the ingress solution. Both ingress solutions provide an ingress gateway pod that becomes part of the traffic path. Both ingress solutions are based on Envoy. By default, Serverless has two routes for each Knativeservice
object:
A cluster-external route that is forwarded by the OpenShift router, for example myapp-namespace.example.com
.
A cluster-local route containing the cluster domain, for example myapp.namespace.svc.cluster.local
. This domain can and should be used to call Knative services from Knative or other user workloads.
The ingress gateway can forward requests either in the serve mode or the proxy mode:
In the serve mode, requests go directly to the Queue-Proxy sidecar container of the Knative service.
In the proxy mode, requests first go through the Activator component in the knative-serving
namespace.
The choice of mode depends on the configuration of Knative, the Knative service, and the current traffic. For example, if a Knative service is scaled to zero, requests are sent to the Activator component, which acts as a buffer until a new Knative service pod is started.