What is Knative?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
L3 Networker

What is Knative, and What Can It Do for You?

 

Kubernetes is great. However, with Knative, a relatively new, open-source platform spearheaded by Google, Kubernetes can be even better.

 

If you haven’t heard about Knative or how it can save developers time and headaches, you could be missing out on some powerful features that help you get more out of Kubernetes and containers with less effort.

 

Eyal Manor, Vice President of Engineering at Google Cloud Platform, announced Knative back in July 2018 as part of a broader initiative aimed at “bringing the best of serverless” to developers. Pivotal, IBM, Red Hat, and SAP have also contributed to Knative.

 

Here we’ll provide an overview and how it can help you double-down on microservices and containers.

 

Why Knative?

To understand the point of Knative, you have to understand what Kubernetes does and what it doesn’t do. Kubernetes is a container orchestrator. It helps you manage containers. For that task, it’s a great tool.

 

However, there are two related things that Kubernetes doesn’t do in a native way: building containers and bridging the gap between containerized applications and serverless applications.

 

In the past, if you wanted to use Kubernetes as part of a CI/CD pipeline in which you built and deployed containers automatically from source code, you would typically have had to rely on proprietary release-management tools that integrated with Kubernetes. You also probably would have had to write custom code to manage container builds and expend manual effort troubleshooting things when builds went wrong.

 

Similarly, using Kubernetes in conjunction with serverless computing was difficult unless you used a cloud-based serverless platform that integrated with Kubernetes.

 

Knative is designed as a way for you to do both of these things without relying on a proprietary framework or a lot of custom tooling and management.

 

What Knative Does

Knative works by providing several tools that integrate with Kubernetes. They are fully open source and automate much of the work that you would previously have had to perform manually to build containers or deploy containerized code into a serverless environment within a Kubernetes-based pipeline.

 

Knative consists of three main components:

  1. Build – automates the process of pulling source code from a repository, building a container image based on it and then running that image within a Kubernetes cluster.
  2. Serving – uses Kubernetes and Istio to deploy containers into a serverless environment.
  3. Eventing – a framework for defining events and triggering actions based on them within a cloud-native environment.

 

The Knative project also includes some subsidiary tools, along with documentation.

 

Given that Knative’s functionality falls into several distinct categories (container build automation, serverless deployment, and event-driven computing), it makes the most sense to think of Knative not as a singular tool but instead as a collection of different tools that broadly extend what you can do within a Kubernetes-based pipeline.

 

In case you’re wondering where you can use Knative, it’s designed to run both in the cloud or on-premises. And no, you don’t have to use Google Cloud; it will work with any modern cloud environment.

 

Should You Use Knative?

Now, on to the big question: Should you use Knative?

 

The answer depends on how much you use Kubernetes and on how much you currently struggle to perform the tasks that Knative could help to automate within a Kubernetes-based pipeline.

 

Astute developers will likely point out that Knative doesn’t really do anything radically new. You could implement all of its functionality yourself if you want to use custom code and processes—and some DevOps shops undoubtedly already have Kubernetes pipelines in place that give them basically the same results as Knative.

 

That said, Knative can save you a great deal of time by eliminating the need to build and maintain your own Kubernetes extensions. It can also make developers’ lives better because building custom extensions for Kubernetes is the type of task that is tedious and inglorious. Most developers will likely enjoy outsourcing that work to an open-source project, so they can focus on doing things that are more fun.

 

In short, if you rely on Kubernetes, there is a good chance that Knative can benefit you, even if you are currently implementing its functionality in other ways. You may want to wait for Knative to mature a bit more before deploying it for production purposes, but now’s a good time to start exploring how it can improve your delivery pipeline while also making your developers feel better about life.

 

 

 

  • 3496 Views
  • 0 comments
  • 0 Likes
Register or Sign-in
Labels
Top Liked Authors