Chapter 2. OpenShift Serverless overview
OpenShift Serverless provides Kubernetes-native building blocks for creating and deploying serverless, event-driven applications on OpenShift Container Platform. These applications scale up and down (to zero) on-demand and respond to events from several sources. OpenShift Serverless uses the open source Knative project to deliver portability and consistency across hybrid and multicloud environments.
The following sections describe the core components of OpenShift Serverless:
2.1. About Knative Serving Copy linkLink copied to clipboard!
Knative Serving builds on Kubernetes to support deploying and serving of applications and functions as serverless containers. Serving simplifies the application deployment, dynamically scales based on in incoming traffic, and supports custom rollout strategies with traffic splitting.
Knative Serving includes the following features:
- Simplified deployment of serverless containers
- Traffic-based auto-scaling, including scale-to-zero
- Routing and network programming
- Point-in-time application snapshots and their configurations
2.2. About Knative Eventing Copy linkLink copied to clipboard!
Knative Eventing provides a platform that offers composable primitives to enable late-binding event sources and event consumers.
Knative Eventing supports the following architectural cloud-native concepts:
- Services are loosely coupled during development and deployed independently to production.
- A producer can generate events before a consumer starts listening, and a consumer can express interest in events or event types that no producer generates yet.
- You can connect services to create new applications without modifying the producer or consumer, and select a specific subset of events from a particular producer.
2.3. About OpenShift Serverless Functions Copy linkLink copied to clipboard!
You can write OpenShift Serverless Functions and deploy them as Knative Services, using Knative Serving and Eventing.
OpenShift Serverless Functions includes the following features:
Support for the following build strategies:
- Source-to-Image (S2I)
- Buildpacks
- Multiple runtimes
-
Local developer experience through the Knative (
kn) CLI - Project templates
-
Support for receiving
CloudEventsand plain HTTP requests
2.4. About OpenShift Serverless Logic Copy linkLink copied to clipboard!
With OpenShift Serverless Logic, you define declarative workflow models by using YAML or JSON files to orchestrate event-driven, serverless applications. You can visualize workflow execution to simplify debugging and optimization. Built-in error handling and fault tolerance help you manage errors and exceptions during workflow execution.
OpenShift Serverless Logic implements the Cloud Native Computing Foundation (CNCF) Serverless Workflow specification.
2.5. About Knative CLI Copy linkLink copied to clipboard!
You can use the Knative (kn) CLI to create Knative resources from the command line or within shell scripts. Its extensive help pages and autocompletion reduce the need to memorize detailed Knative resource schemas.
The Knative (kn) CLI includes the following features:
| Category | Features |
|---|---|
| Knative Serving |
Services |
| Knative Eventing |
Sources |
| Extensibility |
Plugin architecture based on the Kubernetes ( |
| Integration | Integration of Knative into Tekton pipelines |