33

Knative 101:通过几个练习来了解 Knative

 5 years ago
source link: http://www.ibm.com/developerworks/cn/opensource/os-tutorials-knative-101-labs/index.html?ca=drs-&%3Butm_source=tuicool&%3Butm_medium=referral
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Knative 是一个新的开源项目,它的出现让 Kubernetes 和 Serverless 社区倍感振奋。 它非常适合应用程序开发者,特别是那些已使用 Kubernetes 的人,使他们能够将精力集中于业务逻辑,而非基础架构。

Knative 是什么,为什么您需要关注它?

本文介绍了 Knative 的三大组件:Serving、Build 和 Eventing,并通过部署一个简单的 helloworld 无服务器应用程序来重点介绍 Serving 组件。详细内容请查看 Knative: What is it and why should you care?

Knative 是 IBM、Google、Pivotal、Red Hat、Cisco 以及其他一些企业的合作项目,基于Istio 和Kubernetes 构建。Knative 由 3 个原始组件构成 (用于在 Kubernetes 上启用无服务器应用程序):Serving、Build 和 Eventing。Serving 组件主要为应用程序提供服务、管理流量以及路由和自动扩展。Build 组件则负责创建一系列步骤,在集群上完成从源代码到镜像的整个应用程序构建过程。Eventing 组件旨在为应用程序创建事件生产者和使用者。所有这些组件都会尝试确定常见模式和最佳实践,以供他人使用,作为后续开发工作的基础。

Knative 有两类主要用户:开发者和平台提供者。开发者可以直接使用 Knative(或通过 API)基于 Kubernetes 构建无服务器应用程序。平台提供者则可以使用 Knative 原始组件,基于 Kubernetes 构建自己的无服务器平台。

在云中自动化 Knative 安装

本文介绍了如何使用 IBM Cloud 上的Open Toolchain 将 Knative 自动安装到 IBM Cloud Kubernetes Service,详细内容请查看 Automating Knative installation on the cloud

本教程简要概述了 Knative 及其各种功能和组件。点击 这里 查看一系列练习。完成这些练习后,您将掌握:

  • IBM Cloud Kubernetes Service (IKS) 上创建新集群。
  • 将 Istio 和 Knative 安装到 Kubernetes 集群。
  • 将 Node.js 应用程序部署到 Knative,在使用时可向上扩容,而在不再使用时缩回到零。
  • 了解如何使用 knctl 工具轻松创建路由规则并在较高层面将应用程序部署到 Knative。

立即访问 Knative 101 实验

本文翻译自: Knative 101: Exercises designed to help you achieve an understanding of Knative (2019-02-01)


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK