This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.第 6 章 创建并管理无服务器应用程序
6.1. 使用 Knative 服务的无服务器应用程序 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
要使用 OpenShift Serverless 部署无服务器应用程序,必须创建 Knative 服务。Knative 服务是 Kubernetes 服务,由包括在一个 YAML 文件中的一个路由和一个配置定义。
Knative 服务 YAML 示例
使用以下任一方法创建一个无服务器应用程序:
- 从 OpenShift Container Platform web 控制台创建 Knative 服务。
-
使用
kn
CLI 创建 Knative 服务。 - 创建和应用 YAML 文件。