Jump To Close Expand all Collapse all Table of contents Serving 1. Knative Serving 入门 Expand section "1. Knative Serving 入门" Collapse section "1. Knative Serving 入门" 1.1. 无服务器应用程序 Expand section "1.1. 无服务器应用程序" Collapse section "1.1. 无服务器应用程序" 1.1.1. 使用 Knative CLI 创建无服务器应用程序 1.1.2. 使用 YAML 创建无服务器应用程序 1.1.3. 使用管理员视角创建无服务器应用程序 1.1.4. 使用离线模式创建服务 1.1.5. 其他资源 1.2. 验证无服务器应用程序的部署 Expand section "1.2. 验证无服务器应用程序的部署" Collapse section "1.2. 验证无服务器应用程序的部署" 1.2.1. 验证无服务器应用程序的部署 2. 自动缩放 Expand section "2. 自动缩放" Collapse section "2. 自动缩放" 2.1. 自动缩放 2.2. 扩展范围 Expand section "2.2. 扩展范围" Collapse section "2.2. 扩展范围" 2.2.1. 最小扩展范围 Expand section "2.2.1. 最小扩展范围" Collapse section "2.2.1. 最小扩展范围" 2.2.1.1. 使用 Knative CLI 设置 min-scale 注解 2.2.2. 最大扩展范围 Expand section "2.2.2. 最大扩展范围" Collapse section "2.2.2. 最大扩展范围" 2.2.2.1. 使用 Knative CLI 设置 max-scale 注解 2.3. 并发 Expand section "2.3. 并发" Collapse section "2.3. 并发" 2.3.1. 配置软并发目标 2.3.2. 配置硬并发限制 2.3.3. 并发目标使用率 2.4. Scale-to-zero Expand section "2.4. Scale-to-zero" Collapse section "2.4. Scale-to-zero" 2.4.1. 启用 scale-to-zero 2.4.2. 配置 scale-to-zero 宽限期 3. 配置无服务器应用程序 Expand section "3. 配置无服务器应用程序" Collapse section "3. 配置无服务器应用程序" 3.1. 对 Serving 的多容器支持 Expand section "3.1. 对 Serving 的多容器支持" Collapse section "3.1. 对 Serving 的多容器支持" 3.1.1. 配置多容器服务 3.2. EmptyDir 卷 Expand section "3.2. EmptyDir 卷" Collapse section "3.2. EmptyDir 卷" 3.2.1. 配置 EmptyDir 扩展 3.3. Serving 的持久性卷声明 Expand section "3.3. Serving 的持久性卷声明" Collapse section "3.3. Serving 的持久性卷声明" 3.3.1. 启用 PVC 支持 3.3.2. OpenShift Container Platform 的其他资源 3.4. init 容器 Expand section "3.4. init 容器" Collapse section "3.4. init 容器" 3.4.1. 启用 init 容器 3.5. 将镜像标签解析到摘要 Expand section "3.5. 将镜像标签解析到摘要" Collapse section "3.5. 将镜像标签解析到摘要" 3.5.1. tag-to-digest 解析 Expand section "3.5.1. tag-to-digest 解析" Collapse section "3.5.1. tag-to-digest 解析" 3.5.1.1. 使用 secret 配置 tag-to-digest 解析 3.6. 配置 TLS 身份验证 Expand section "3.6. 配置 TLS 身份验证" Collapse section "3.6. 配置 TLS 身份验证" 3.6.1. 为内部流量启用 TLS 身份验证 3.7. 配置 Kourier Expand section "3.7. 配置 Kourier" Collapse section "3.7. 配置 Kourier" 3.7.1. 为 Kourier getaways 自定义 kourier-bootstrap 3.8. 限制网络策略 Expand section "3.8. 限制网络策略" Collapse section "3.8. 限制网络策略" 3.8.1. 具有限制性网络策略的集群 3.8.2. 在具有限制性网络策略的集群中启用与 Knative 应用程序通信 4. 调试无服务器应用程序 Expand section "4. 调试无服务器应用程序" Collapse section "4. 调试无服务器应用程序" 4.1. 检查终端输出 4.2. 检查 pod 状态 4.3. 检查修订状态 Expand section "4.3. 检查修订状态" Collapse section "4.3. 检查修订状态" 4.3.1. 其他资源 4.4. 检查 Ingress 状态 4.5. 检查路由状态 4.6. 检查 Ingress 和 Istio 路由 Expand section "4.6. 检查 Ingress 和 Istio 路由" Collapse section "4.6. 检查 Ingress 和 Istio 路由" 4.6.1. 其他资源 5. Kourier 和 Istio ingresses Expand section "5. Kourier 和 Istio ingresses" Collapse section "5. Kourier 和 Istio ingresses" 5.1. Kourier 和 Istio ingress 解决方案 Expand section "5.1. Kourier 和 Istio ingress 解决方案" Collapse section "5.1. Kourier 和 Istio ingress 解决方案" 5.1.1. Kourier 5.1.2. 使用 OpenShift Service Mesh 的 Istio 5.1.3. 流量配置和路由 6. 流量分割 Expand section "6. 流量分割" Collapse section "6. 流量分割" 6.1. 流量分割概述 6.2. traffic 规格示例 6.3. 使用 Knative CLI 进行流量分割 Expand section "6.3. 使用 Knative CLI 进行流量分割" Collapse section "6.3. 使用 Knative CLI 进行流量分割" 6.3.1. 使用 Knative CLI 创建流量分割 6.4. 用于流量分割的 CLI 标志 Expand section "6.4. 用于流量分割的 CLI 标志" Collapse section "6.4. 用于流量分割的 CLI 标志" 6.4.1. Knative CLI 流量分割标志 Expand section "6.4.1. Knative CLI 流量分割标志" Collapse section "6.4.1. Knative CLI 流量分割标志" 6.4.1.1. 多个标志和顺序优先级 6.4.1.2. 修订版本的自定义 URL Expand section "6.4.1.2. 修订版本的自定义 URL" Collapse section "6.4.1.2. 修订版本的自定义 URL" 6.4.1.2.1. 示例:将标签分配给修订版本 6.4.1.2.2. 示例:从修订中删除标签 6.5. 在修订版本间分割流量 Expand section "6.5. 在修订版本间分割流量" Collapse section "6.5. 在修订版本间分割流量" 6.5.1. 使用 OpenShift Container Platform Web 控制台管理修订版本之间的流量 6.6. 使用蓝绿策略重新路由流量 Expand section "6.6. 使用蓝绿策略重新路由流量" Collapse section "6.6. 使用蓝绿策略重新路由流量" 6.6.1. 使用蓝绿部署策略路由和管理流量 7. External 和 Ingress 路由 Expand section "7. External 和 Ingress 路由" Collapse section "7. External 和 Ingress 路由" 7.1. 路由概述 Expand section "7.1. 路由概述" Collapse section "7.1. 路由概述" 7.1.1. OpenShift Container Platform 的其他资源 7.2. 自定义标签和注解 Expand section "7.2. 自定义标签和注解" Collapse section "7.2. 自定义标签和注解" 7.2.1. 为 OpenShift Container Platform 路由自定义标签和注解 7.3. 为 Knative 服务配置路由 Expand section "7.3. 为 Knative 服务配置路由" Collapse section "7.3. 为 Knative 服务配置路由" 7.3.1. 为 Knative 服务配置 OpenShift Container Platform 路由 7.4. 全局 HTTPS 重定向 Expand section "7.4. 全局 HTTPS 重定向" Collapse section "7.4. 全局 HTTPS 重定向" 7.4.1. HTTPS 重定向全局设置 7.5. 外部路由的 URL 方案 Expand section "7.5. 外部路由的 URL 方案" Collapse section "7.5. 外部路由的 URL 方案" 7.5.1. 为外部路由设置 URL 方案 7.6. 每个服务的 HTTPS 重定向 Expand section "7.6. 每个服务的 HTTPS 重定向" Collapse section "7.6. 每个服务的 HTTPS 重定向" 7.6.1. 为服务重定向 HTTPS 7.7. 集群本地可用性 Expand section "7.7. 集群本地可用性" Collapse section "7.7. 集群本地可用性" 7.7.1. 将集群可用性设置为集群本地 7.7.2. 为集群本地服务启用 TLS 身份验证 7.8. Kourier 网关服务类型 Expand section "7.8. Kourier 网关服务类型" Collapse section "7.8. Kourier 网关服务类型" 7.8.1. 设置 Kourier 网关服务类型 7.9. 使用 HTTP2 和 gRPC Expand section "7.9. 使用 HTTP2 和 gRPC" Collapse section "7.9. 使用 HTTP2 和 gRPC" 7.9.1. 使用 HTTP2 和 gRPC 与无服务器应用程序交互 7.10. 使用带有 OpenShift ingress 分片的 Serving Expand section "7.10. 使用带有 OpenShift ingress 分片的 Serving" Collapse section "7.10. 使用带有 OpenShift ingress 分片的 Serving" 7.10.1. 配置 OpenShift ingress 分片 7.10.2. 在 KnativeServing CR 中配置自定义域 7.10.3. 以 Knative Service 中的特定入口分片为目标 7.10.4. 使用 OpenShift ingress 分片配置验证 Serving 8. 配置对 Knative 服务的访问 Expand section "8. 配置对 Knative 服务的访问" Collapse section "8. 配置对 Knative 服务的访问" 8.1. 为 Knative 服务配置 JSON Web 令牌身份验证 8.2. 在 Service Mesh 2.x 中使用 JSON Web 令牌身份验证 Expand section "8.2. 在 Service Mesh 2.x 中使用 JSON Web 令牌身份验证" Collapse section "8.2. 在 Service Mesh 2.x 中使用 JSON Web 令牌身份验证" 8.2.1. 为 Service Mesh 2.x 和 OpenShift Serverless 配置 JSON Web 令牌身份验证 8.3. 在 Service Mesh 1.x 中使用 JSON Web 令牌身份验证 Expand section "8.3. 在 Service Mesh 1.x 中使用 JSON Web 令牌身份验证" Collapse section "8.3. 在 Service Mesh 1.x 中使用 JSON Web 令牌身份验证" 8.3.1. 为 Service Mesh 1.x 和 OpenShift Serverless 配置 JSON Web 令牌身份验证 9. 为 Serving 配置 kube-rbac-proxy Expand section "9. 为 Serving 配置 kube-rbac-proxy" Collapse section "9. 为 Serving 配置 kube-rbac-proxy" 9.1. 为 Serving 配置 kube-rbac-proxy 资源 10. 为 net-kourier 配置 burst 和 QPS Expand section "10. 为 net-kourier 配置 burst 和 QPS" Collapse section "10. 为 net-kourier 配置 burst 和 QPS" 10.1. 为 net-kourier 配置 burst 和 QPS 值 11. 为 Knative 服务配置自定义域 Expand section "11. 为 Knative 服务配置自定义域" Collapse section "11. 为 Knative 服务配置自定义域" 11.1. 为 Knative 服务配置自定义域 11.2. 自定义域映射 Expand section "11.2. 自定义域映射" Collapse section "11.2. 自定义域映射" 11.2.1. 创建自定义域映射 11.3. 使用 Knative CLI 的 Knative 服务自定义域 Expand section "11.3. 使用 Knative CLI 的 Knative 服务自定义域" Collapse section "11.3. 使用 Knative CLI 的 Knative 服务自定义域" 11.3.1. 使用 Knative CLI 创建自定义域映射 11.4. 使用 Developer 视角的域映射 Expand section "11.4. 使用 Developer 视角的域映射" Collapse section "11.4. 使用 Developer 视角的域映射" 11.4.1. 使用 Developer 视角将自定义域映射到服务 11.5. 使用 Administrator 视角的域映射 Expand section "11.5. 使用 Administrator 视角的域映射" Collapse section "11.5. 使用 Administrator 视角的域映射" 11.5.1. 使用 Administrator 视角将自定义域映射到服务 11.5.2. 使用 Administrator 视角限制密码套件 11.6. 使用 TLS 证书保护映射的服务 Expand section "11.6. 使用 TLS 证书保护映射的服务" Collapse section "11.6. 使用 TLS 证书保护映射的服务" 11.6.1. 使用 TLS 证书保护带有自定义域的服务 11.6.2. 使用 secret 过滤改进 net-kourier 内存用量 12. Knative Serving 的高可用性配置 Expand section "12. Knative Serving 的高可用性配置" Collapse section "12. Knative Serving 的高可用性配置" 12.1. Knative 服务的高可用性 12.2. Knative 部署的高可用性 Expand section "12.2. Knative 部署的高可用性" Collapse section "12.2. Knative 部署的高可用性" 12.2.1. 为 Knative Serving 配置高可用性副本 13. 调优服务配置 Expand section "13. 调优服务配置" Collapse section "13. 调优服务配置" 13.1. 覆盖 Knative Serving 系统部署配置 Expand section "13.1. 覆盖 Knative Serving 系统部署配置" Collapse section "13.1. 覆盖 Knative Serving 系统部署配置" 13.1.1. 覆盖系统部署配置 14. 配置队列代理资源 Expand section "14. 配置队列代理资源" Collapse section "14. 配置队列代理资源" 14.1. 为 Knative Service 配置队列代理资源 法律通告 Settings Close Language: 简体中文 한국어 日本語 English Language: 简体中文 한국어 日本語 English Format: Multi-page Single-page Format: Multi-page Single-page Language and Page Formatting Options Language: 简体中文 한국어 日本語 English Language: 简体中文 한국어 日本語 English Format: Multi-page Single-page Format: Multi-page Single-page Serving Red Hat OpenShift Serverless 1.32开始使用 Knative Serving 并配置服务Red Hat OpenShift Documentation Team法律通告摘要 本文档提供有关开始使用 Knative Serving 的信息。它演示了如何配置应用程序,并涵盖自动扩展、流量分割和外部和入口路由等功能。 Next