Knative and OpenFaaS add serverless capabilities to Kubernetes, helping teams deploy functions, route requests, and scale workloads as demand shifts. Knative supports event-driven services and scale-to-zero, while OpenFaaS offers a gateway-based approach with practical deployment options such as Helm.

Multiple Choice

Which two open source projects provide Serverless functionality on Kubernetes?

Serverless on Kubernetes is about platforms that run on the cluster to package, route, and scale functions automatically. Knative is a Kubernetes-native platform that adds these capabilities through Serving (autoscaling, including to zero, and traffic routing to function revisions) and Eventing (event-driven invocation). OpenFaaS is another well-known open-source serverless framework for Kubernetes, exposing functions via a gateway and scaling them automatically, with straightforward deployment options like Helm or an operator. These two projects are widely recognized as primary open-source solutions for bringing serverless capabilities to Kubernetes, which is why they form the best pairing.

Serverless computing can sound like a promise that servers simply disappear. They don’t. The machines are still there, and Kubernetes still has plenty to manage. What changes is how developers package and run code: rather than tending to each service instance, they define functions or services and let a platform handle deployment, routing, and scaling. On Kubernetes, Knative and OpenFaaS are two open-source projects that bring this style of work to a cluster.

Both aim to make application delivery feel lighter, but they take different routes. Knative adds a set of serverless building blocks to Kubernetes, while OpenFaaS focuses on making functions easy to package, publish, and call. Knowing how each one works helps teams choose a fit for their apps—and understand what “serverless” really means when Kubernetes is underneath.

First, what does serverless mean on Kubernetes?

In a serverless model, developers focus on code and behavior rather than managing every running instance. A function might respond to an HTTP request, process a message, or react to a change in a system. The platform takes care of getting that code into a running container and connecting it to the event or request that should trigger it.

Kubernetes already handles containers, scheduling, and service discovery. But it doesn’t, by itself, provide every feature associated with serverless computing. For example, an application may need to scale down when no one is using it, then start again when a request arrives. It may also need to route traffic between versions or connect a message source to the right workload.

That’s where serverless frameworks come in. They build on Kubernetes rather than replacing it. The cluster remains the foundation; the framework supplies extra tools for deploying and operating workloads. The word “serverless” can be a little misleading, then. There are servers, but the developer usually has less day-to-day responsibility for their individual instances.

Knative: serverless building blocks for Kubernetes

Knative is a Kubernetes-native platform designed to support serverless-style workloads. It organizes its core capabilities around two components: Serving and Eventing.

Knative Serving helps deploy services and manage how requests reach them. It can create and update service revisions, route traffic between those revisions, and scale workloads based on demand. One notable feature is scale-to-zero: when a service has no incoming requests, Knative can reduce its running instances to zero. If a request arrives later, the service can start again.

That can save resources for workloads that are quiet for long stretches. Think of an internal tool used only during business hours, or a small service that handles occasional bursts of activity. Keeping several instances running around the clock may not make sense. Knative gives teams a way to let demand shape the number of active instances.

Traffic routing is useful, too. A team can send requests to a new revision gradually rather than switching every user at once. That makes it easier to observe how a change behaves before sending it more widely. In that sense, Knative’s traffic controls resemble a dimmer switch, not a light switch: teams can adjust exposure in measured steps.

Knative Eventing handles event-driven connections. Applications often need to react to more than web requests. A message may arrive from a broker, a record may be added to a data store, or an external system may emit a notification. Eventing provides ways to connect event sources, route events, and deliver them to services.

The separation between Serving and Eventing matters. A service can respond to HTTP traffic, while an event-driven workload can respond to messages or other signals. Together, these components give teams a flexible foundation for applications whose activity rises and falls—or whose work begins with an event rather than a person clicking a button.

OpenFaaS: a direct route to functions

OpenFaaS, short for Open Function as a Service, is another open-source framework for running functions on Kubernetes. Its central idea is straightforward: package code as a function, deploy it to the cluster, then call it through an HTTP endpoint.

A gateway sits between users or other services and deployed functions. It provides a consistent way to invoke functions and can support features such as authentication and metrics, depending on the setup. OpenFaaS also supplies tools and templates that help developers build function images from different programming languages. The result is a workflow that can feel familiar to teams already comfortable with containers and APIs.

OpenFaaS can scale functions in response to demand. Its exact behavior depends on the configuration and components a team uses, but the broad aim is similar to Knative’s: run the right amount of workload for the current activity, without requiring developers to manage each instance by hand.

Deployment options include Helm and an operator. Helm packages Kubernetes resources into charts, which can be installed and managed with familiar commands. An operator can automate parts of an application’s lifecycle by watching Kubernetes resources and acting on them. These approaches give platform teams different ways to fit OpenFaaS into their existing cluster management.

One reason OpenFaaS appeals to many teams is its focus on the function workflow itself. The gateway, templates, and command-line tools help make the path from source code to deployed function feel clear. That doesn’t mean every workload belongs in a function, of course. Long-running services, stateful systems, and applications with special runtime needs may call for a different shape.

Similar goals, different emphasis

Knative and OpenFaaS both bring serverless capabilities to Kubernetes, but they aren’t identical products with different logos. Knative is often seen as a collection of Kubernetes-native components for serving and event-driven workloads. OpenFaaS places strong emphasis on the function experience: creating, deploying, and invoking functions through its framework.

That distinction can guide a decision. A team that wants advanced traffic management across service revisions and event routing may be drawn to Knative. A team looking for a clear function-oriented workflow, with a gateway and accessible deployment tools, may find OpenFaaS appealing. There’s no universal winner; architecture, team skills, operational needs, and existing systems all matter.

It’s also worth looking beyond feature lists. Scale-to-zero can reduce idle resource use, but a workload that wakes from zero may add startup delay. That delay is known as cold-start latency. For some applications, a brief pause is acceptable; for others, every fraction of a second counts. Keeping a small number of instances warm can help, though it may use more resources. Serverless systems often involve this kind of trade-off: less idle capacity on one side, responsiveness and predictability on the other.

Observability deserves attention as well. A function may be short-lived, but the system around it still needs logs, metrics, and traces. When a request passes through a gateway, a service, and perhaps an event broker, teams need enough visibility to follow what happened. Kubernetes gives a foundation for monitoring, but good observability still depends on the tools and configuration chosen for the cluster.

Where these frameworks fit

Serverless frameworks can suit event handlers, lightweight APIs, background jobs, and services with uneven traffic. They can also help teams deploy small units of code without building a custom platform from scratch. A function that resizes an uploaded image, for instance, may run only when a new file arrives. A reporting endpoint might receive a rush of requests at certain times and remain quiet at others.

Still, not every application becomes simpler when split into functions. Too many tiny components can make a system harder to trace and maintain. A function also runs within an ecosystem of containers, permissions, network rules, and cluster resources. The platform takes on some operational work, but it doesn’t erase the need for sound design.

That’s the useful way to think about serverless on Kubernetes: it shifts responsibility; it doesn’t make responsibility vanish. Developers can spend less time handling individual instances, while platform teams provide the cluster, security controls, and shared services that keep workloads reliable.

Knative and OpenFaaS are two established open-source routes to that model. Knative brings Serving and Eventing capabilities to Kubernetes, including traffic routing and autoscaling. OpenFaaS offers a function-centered framework with a gateway and practical deployment paths. Each can help teams build responsive, event-driven applications—provided they weigh the benefits against startup time, system complexity, and the needs of the workload itself.