Cloud Native 26 min read

How Knative Turns Ordinary Apps into Serverless Cloud‑Native Services

This article explains the motivations behind cloud native computing, introduces Knative’s three core modules—Tekton, Eventing, and Serving—and shows how they enable serverless capabilities, traffic management, gray‑release, and elasticity for modern applications, illustrated with a practical demo and Q&A.

Alibaba Cloud Native
Alibaba Cloud Native
Alibaba Cloud Native
How Knative Turns Ordinary Apps into Serverless Cloud‑Native Services

Why Cloud Native?

Enterprises adopt cloud computing to outsource non‑core infrastructure, allowing developers to focus on business logic. This mirrors the economic principle of specialization, where professional providers handle tasks like storage and networking, improving overall efficiency.

Core Drivers of Cloud

Two fundamental forces shape cloud adoption: societal division of labor and the need for flexible application deployment. By delegating infrastructure to cloud providers, businesses gain standardized, portable services across vendors.

From Traditional Apps to Cloud‑Native Applications

Modern cloud‑native apps consist of compute, storage, and network resources, plus supporting services such as databases, caches, and message queues. Continuous integration/continuous delivery (CI/CD) pipelines and operational concerns like logging and monitoring complete the stack.

Knative Overview

Knative is an open‑source project built on Kubernetes that provides a standardized serverless orchestration layer. It abstracts the complexities of scaling, traffic routing, and event handling, enabling developers to focus on code.

Knative Core Modules

Tekton : A Kubernetes‑native workflow engine for building CI/CD pipelines. Tasks consist of ordered steps executed in containers; pipelines compose tasks with dependencies.

Eventing : Implements the CloudEvents standard, offering external event ingestion, broker/trigger mechanisms, and reliable event processing with retry and dead‑letter handling.

Serving : Manages application workloads, automatically creating Kubernetes Services, Deployments, and Istio VirtualServices. It introduces Service, Configuration, and Revision resources to support traffic splitting, gray‑release, and per‑revision autoscaling.

Serverless Features in Knative

Knative Serving routes traffic through an Istio Gateway, splits it among revisions based on percentage, and scales each revision independently. This tight integration of traffic management, elasticity, and gray‑release enables seamless handling of burst traffic and zero‑scale scenarios.

Typical Use Cases

Micro‑service hosting with automatic scaling and traffic splitting.

Web and gRPC service hosting.

Event‑driven workloads such as IoT data processing or cloud product state changes.

CI/CD pipelines triggered by Git commits or container image pushes.

Micro‑PaaS platforms that abstract Kubernetes complexity for developers.

AI/ML task orchestration (e.g., KFServing).

Demo Commands

https://help.aliyun.com/document_detail/126413.html
https://github.com/knative-sample/cloud-native-go-weather
http://weather-web.default.live.kuberun.com/#/
https://tracing-analysis.console.aliyun.com/#/appList/cn-shenzhen
registry.cn-hangzhou.aliyuncs.com/knative-sample/weather-detail:limit-v1
hey -z 60s -c 30 http://weather-web.default.live.kuberun.com/api/city/detail/010/2019-12-05
helm install ./chart --name live-weather --namespace live
helm delete live-weather --purge

Q&A Highlights

Can Knative replace Jenkins? Tekton, the build component of Knative, focuses on Kubernetes‑native pipelines rather than being a direct Jenkins replacement.

Difference between Knative and generic Kubernetes orchestration? Kubernetes standardizes IaaS resources, while Knative adds an application‑level orchestration layer for traffic, gray‑release, and autoscaling.

How does Knative handle cold starts? Scaling to zero introduces latency on the first request; this remains a challenge across serverless platforms.

Deployment in private clouds? Knative can be installed on any conformant Kubernetes cluster, though some images may require external registry access.

High availability of Knative components? Controllers are deployed as multiple replicas with leader election to ensure HA.

Key Takeaways

Knative provides a vendor‑agnostic, Kubernetes‑based serverless platform that unifies traffic management, scaling, and event handling. Its modular design—Tekton for CI/CD, Eventing for event processing, and Serving for workload management—makes it suitable for a wide range of cloud‑native workloads, from micro‑services to AI pipelines.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

ServerlessKubernetesKnativetektonServing
Alibaba Cloud Native
Written by

Alibaba Cloud Native

We publish cloud-native tech news, curate in-depth content, host regular events and live streams, and share Alibaba product and user case studies. Join us to explore and share the cloud-native insights you need.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.