What is Knative?

Copy URL

Knative (pronounced kay-nay-tiv) is an open source community project which adds components for deploying, running, and managing serverless, cloud-native applications to Kubernetes. The serverless cloud computing model can lead to increased developer productivity and reduced operational costs.

Learn more about Red Hat OpenShift Serverless

Knative eliminates the tasks of provisioning and managing servers. This lets developers focus on their code without having to worry about setting up complex infrastructure. This benefit is extended even further if entire application components are incorporated from a third party through Backend-as-a-Service (BaaS), rather than being written in-house.

The Knative serverless environment lets you deploy code to a Kubernetes platform, like Red Hat OpenShift. With Knative, you create a service by packaging your code as a container image and handing it to the system. Your code only runs when it needs to, with Knative starting and stopping instances automatically. Resources aren’t consumed unless your code needs to do something. Operations costs can be reduced—you can pay for cloud-based compute time as it’s needed instead of running and managing your own servers all the time.

Choose the right hybrid cloud foundation for building and running containerized apps

Red Hat resources

Knative consists of 3 primary components:

  • Build - A flexible approach to building source code into containers.
  • Serving - Enables rapid deployment and automatic scaling of containers through a request-driven model for serving workloads based on demand.
  • Eventing - An infrastructure for consuming and producing events to stimulate applications. Applications can be triggered by a variety of sources, such as events from your own applications, cloud services from multiple providers, Software-as-a-Service (SaaS) systems, and Red Hat AMQ streams.

Learn how to build and deploy a serverless service to Knative at Red Hat Developer

Knative allows serverless applications to be deployed and run on any Kubernetes platform, including Red Hat OpenShift Container Platform. Knative installs on OpenShift using Operators.

Knative is maintained by an open source community, including companies like Red Hat, Google, and IBM in collaboration with a variety of startups. Open source software limits the potential for vendor lock-in, shifting the power from IT providers to the people using it.

See what Red Hat thinks about serverless and vendor lock-in

Red Hat® OpenShift® Serverless is a service based on the open source Knative project. It provides an enterprise-grade serverless platform which brings portability and consistency across hybrid and multi-cloud environments.

OpenShift Serverless can help deliver a complete serverless app dev and deployment experience by integrating apps with other OpenShift Container Platform services, like OpenShift Service Mesh and cluster monitoring.

Using Red Hat OpenShift Serverless can also make things easier for operations because it installs easily on OpenShift, has been tested with other Red Hat products, and comes with access to award-winning support.

Learn why you should choose Red Hat OpenShift Serverless

Hub

The official Red Hat blog

Get the latest information about our ecosystem of customers, partners, and communities.

All Red Hat product trials

Our no-cost product trials help you gain hands-on experience, prepare for a certification, or assess if a product is right for your organization.

Keep reading

What is KVM?

Kernel-based virtual machines (KVM) are an open source virtualization technology that turns Linux into a hypervisor.

What is Podman Desktop?

Podman Desktop is a free, open source tool that simplifies working with containers in a local developer environment.

What is CentOS Stream?

CentOS Stream is a Linux® development platform where open source community members can contribute to Red Hat® Enterprise Linux in tandem with Red Hat developers.

Open source resources

Related articles