Jump To Close Expand all Collapse all Table of contents CLI 工具 1. OpenShift Container Platform CLI 工具概述 Expand section "1. OpenShift Container Platform CLI 工具概述" Collapse section "1. OpenShift Container Platform CLI 工具概述" 1.1. CLI 工具列表 2. OpenShift CLI (oc) Expand section "2. OpenShift CLI (oc)" Collapse section "2. OpenShift CLI (oc)" 2.1. OpenShift CLI 入门 Expand section "2.1. OpenShift CLI 入门" Collapse section "2.1. OpenShift CLI 入门" 2.1.1. 关于 OpenShift CLI 2.1.2. 安装 OpenShift CLI Expand section "2.1.2. 安装 OpenShift CLI" Collapse section "2.1.2. 安装 OpenShift CLI" 2.1.2.1. 通过下载二进制文件安装 OpenShift CLI Expand section "2.1.2.1. 通过下载二进制文件安装 OpenShift CLI" Collapse section "2.1.2.1. 通过下载二进制文件安装 OpenShift CLI" 2.1.2.1.1. 在 Linux 上安装 OpenShift CLI 2.1.2.1.2. 在 Windows 上安装 OpenShift CLI 2.1.2.1.3. 在 macOS 上安装 OpenShift CLI 2.1.2.2. 使用 Web 控制台安装 OpenShift CLI Expand section "2.1.2.2. 使用 Web 控制台安装 OpenShift CLI" Collapse section "2.1.2.2. 使用 Web 控制台安装 OpenShift CLI" 2.1.2.2.1. 使用 Web 控制台在 Linux 上安装 OpenShift CLI 2.1.2.2.2. 使用 Web 控制台在 Windows 上安装 OpenShift CLI 2.1.2.2.3. 使用 Web 控制台在 macOS 上安装 OpenShift CLI 2.1.2.3. 使用 RPM 安装 OpenShift CLI 2.1.2.4. 使用 Homebrew 安装 OpenShift CLI 2.1.3. 登录到 OpenShift CLI 2.1.4. 使用 OpenShift CLI Expand section "2.1.4. 使用 OpenShift CLI" Collapse section "2.1.4. 使用 OpenShift CLI" 2.1.4.1. 创建一个项目 2.1.4.2. 创建一个新的应用程序 2.1.4.3. 查看 pod 2.1.4.4. 查看 pod 日志 2.1.4.5. 查看当前项目 2.1.4.6. 查看当前项目的状态 2.1.4.7. 列出支持的 API 资源 2.1.5. 获得帮助 2.1.6. 注销 OpenShift CLI 2.2. 配置 OpenShift CLI Expand section "2.2. 配置 OpenShift CLI" Collapse section "2.2. 配置 OpenShift CLI" 2.2.1. 启用 tab 自动完成功能 Expand section "2.2.1. 启用 tab 自动完成功能" Collapse section "2.2.1. 启用 tab 自动完成功能" 2.2.1.1. 为 Bash 启用 tab 自动完成功能 2.2.1.2. 为 Zsh 启用 tab 自动完成 2.3. 管理 CLI 配置集 Expand section "2.3. 管理 CLI 配置集" Collapse section "2.3. 管理 CLI 配置集" 2.3.1. 关于 CLI 配置集间的切换 2.3.2. 手动配置 CLI 配置集 2.3.3. 载入和合并规则 2.4. 使用插件扩展 OpenShift CLI Expand section "2.4. 使用插件扩展 OpenShift CLI" Collapse section "2.4. 使用插件扩展 OpenShift CLI" 2.4.1. 编写CLI插件 2.4.2. 安装和使用CLI插件 2.5. OpenShift CLI 开发人员命令 Expand section "2.5. OpenShift CLI 开发人员命令" Collapse section "2.5. OpenShift CLI 开发人员命令" 2.5.1. 基本CLI命令 Expand section "2.5.1. 基本CLI命令" Collapse section "2.5.1. 基本CLI命令" 2.5.1.1. explain 2.5.1.2. login 2.5.1.3. new-app 2.5.1.4. new-project 2.5.1.5. project 2.5.1.6. projects 2.5.1.7. status 2.5.2. 构建和部署CLI命令 Expand section "2.5.2. 构建和部署CLI命令" Collapse section "2.5.2. 构建和部署CLI命令" 2.5.2.1. cancel-build 2.5.2.2. import-image 2.5.2.3. new-build 2.5.2.4. rollback 2.5.2.5. rollout 2.5.2.6. start-build 2.5.2.7. tag 2.5.3. 应用程序管理CLI命令 Expand section "2.5.3. 应用程序管理CLI命令" Collapse section "2.5.3. 应用程序管理CLI命令" 2.5.3.1. annotate 2.5.3.2. apply 2.5.3.3. autoscale 2.5.3.4. create 2.5.3.5. delete 2.5.3.6. describe 2.5.3.7. edit 2.5.3.8. expose 2.5.3.9. get 2.5.3.10. label 2.5.3.11. scale 2.5.3.12. secrets 2.5.3.13. serviceaccounts 2.5.3.14. set 2.5.4. 调试CLI命令 Expand section "2.5.4. 调试CLI命令" Collapse section "2.5.4. 调试CLI命令" 2.5.4.1. attach 2.5.4.2. cp 2.5.4.3. debug 2.5.4.4. exec 2.5.4.5. logs 2.5.4.6. port-forward 2.5.4.7. proxy 2.5.4.8. rsh 2.5.4.9. rsync 2.5.4.10. run 2.5.4.11. wait 2.5.5. 高级开发人员CLI命令 Expand section "2.5.5. 高级开发人员CLI命令" Collapse section "2.5.5. 高级开发人员CLI命令" 2.5.5.1. api-resources 2.5.5.2. api-versions 2.5.5.3. auth 2.5.5.4. cluster-info 2.5.5.5. convert 2.5.5.6. extract 2.5.5.7. idle 2.5.5.8. image 2.5.5.9. observe 2.5.5.10. patch 2.5.5.11. policy 2.5.5.12. process 2.5.5.13. registry 2.5.5.14. replace 2.5.6. 设置CLI命令 Expand section "2.5.6. 设置CLI命令" Collapse section "2.5.6. 设置CLI命令" 2.5.6.1. completion 2.5.6.2. config 2.5.6.3. logout 2.5.6.4. whoami 2.5.7. 其他开发人员CLI命令 Expand section "2.5.7. 其他开发人员CLI命令" Collapse section "2.5.7. 其他开发人员CLI命令" 2.5.7.1. help 2.5.7.2. plugin 2.5.7.3. version 2.6. OpenShift CLI 管理员命令 Expand section "2.6. OpenShift CLI 管理员命令" Collapse section "2.6. OpenShift CLI 管理员命令" 2.6.1. 集群管理CLI命令 Expand section "2.6.1. 集群管理CLI命令" Collapse section "2.6.1. 集群管理CLI命令" 2.6.1.1. inspect 2.6.1.2. must-gather 2.6.1.3. top 2.6.2. 集群管理 CLI 命令 Expand section "2.6.2. 集群管理 CLI 命令" Collapse section "2.6.2. 集群管理 CLI 命令" 2.6.2.1. cordon 2.6.2.2. drain 2.6.2.3. node-logs 2.6.2.4. taint 2.6.2.5. uncordon 2.6.3. 安全和策略CLI命令 Expand section "2.6.3. 安全和策略CLI命令" Collapse section "2.6.3. 安全和策略CLI命令" 2.6.3.1. certificate 2.6.3.2. groups 2.6.3.3. new-project 2.6.3.4. pod-network 2.6.3.5. policy 2.6.4. 维护CLI命令 Expand section "2.6.4. 维护CLI命令" Collapse section "2.6.4. 维护CLI命令" 2.6.4.1. migrate 2.6.4.2. prune 2.6.5. 配置CLI命令 Expand section "2.6.5. 配置CLI命令" Collapse section "2.6.5. 配置CLI命令" 2.6.5.1. create-bootstrap-project-template 2.6.5.2. create-error-template 2.6.5.3. create-kubeconfig 2.6.5.4. create-login-template 2.6.5.5. create-provider-selection-template 2.6.6. 其他管理员CLI命令 Expand section "2.6.6. 其他管理员CLI命令" Collapse section "2.6.6. 其他管理员CLI命令" 2.6.6.1. build-chain 2.6.6.2. completion 2.6.6.3. config 2.6.6.4. release 2.6.6.5. verify-image-signature 2.7. oc 和 kubectl 命令的使用方法 Expand section "2.7. oc 和 kubectl 命令的使用方法" Collapse section "2.7. oc 和 kubectl 命令的使用方法" 2.7.1. oc 二进制文件 2.7.2. kubectl 二进制文件 3. 开发人员 CLI (odo) Expand section "3. 开发人员 CLI (odo)" Collapse section "3. 开发人员 CLI (odo)" 3.1. odo 发行注记 Expand section "3.1. odo 发行注记" Collapse section "3.1. odo 发行注记" 3.1.1. odo 版本 2.5.0 中的显著变化和改进 3.1.2. 程序错误修复 3.1.3. 获取支持 3.2. 了解 odo Expand section "3.2. 了解 odo" Collapse section "3.2. 了解 odo" 3.2.1. odo 的主要功能 3.2.2. odo 核心概念 3.2.3. 列出 odo 中的组件 3.2.4. odo 中的 Telemetry 3.3. 安装 odo Expand section "3.3. 安装 odo" Collapse section "3.3. 安装 odo" 3.3.1. 在 Linux 中安装 odo 3.3.2. 在 Windows 中安装 odo 3.3.3. 在 macOS 中安装 odo 3.3.4. 在 VS Code 上安装 odo 3.3.5. 使用 RPM 在 Red Hat Enterprise Linux(RHEL)中安装 odo 3.4. 配置 odo CLI Expand section "3.4. 配置 odo CLI" Collapse section "3.4. 配置 odo CLI" 3.4.1. 查看当前配置 3.4.2. 设置值 3.4.3. 取消设置值 3.4.4. 首选键盘表 3.4.5. 忽略文件或特征 3.5. odo CLI 参考指南 Expand section "3.5. odo CLI 参考指南" Collapse section "3.5. odo CLI 参考指南" 3.5.1. odo build-images 3.5.2. odo catalog Expand section "3.5.2. odo catalog" Collapse section "3.5.2. odo catalog" 3.5.2.1. 组件 Expand section "3.5.2.1. 组件" Collapse section "3.5.2.1. 组件" 3.5.2.1.1. 列出组件 3.5.2.1.2. 获取有关组件的信息 3.5.2.2. 服务 Expand section "3.5.2.2. 服务" Collapse section "3.5.2.2. 服务" 3.5.2.2.1. 列出服务 3.5.2.2.2. 搜索服务 3.5.2.2.3. 获取有关服务的信息 3.5.3. odo create Expand section "3.5.3. odo create" Collapse section "3.5.3. odo create" 3.5.3.1. 创建组件 3.5.3.2. Starter (初学者)项目 3.5.3.3. 使用现有的 devfile 3.5.3.4. 互动创建 3.5.4. odo delete Expand section "3.5.4. odo delete" Collapse section "3.5.4. odo delete" 3.5.4.1. 删除组件 3.5.4.2. 取消部署 devfile Kubernetes 组件 3.5.4.3. 全部删除 3.5.4.4. 可用标记 3.5.5. odo deploy 3.5.6. odo link Expand section "3.5.6. odo link" Collapse section "3.5.6. odo link" 3.5.6.1. 各种链接选项 Expand section "3.5.6.1. 各种链接选项" Collapse section "3.5.6.1. 各种链接选项" 3.5.6.1.1. 默认行为 3.5.6.1.2. --inlined 标记 3.5.6.1.3. --map 标志 3.5.6.1.4. --bind-as-files 标志 3.5.6.2. 例子 Expand section "3.5.6.2. 例子" Collapse section "3.5.6.2. 例子" 3.5.6.2.1. 默认 odo 链接 3.5.6.2.2. 使用带有 --inlined 标记的 odo 链接 3.5.6.2.3. 自定义绑定 Expand section "3.5.6.2.3. 自定义绑定" Collapse section "3.5.6.2.3. 自定义绑定" 3.5.6.2.3.1. 使用内联还是不使用? 3.5.6.3. 将绑定作为文件绑定 3.5.6.4. --bind-as-files 示例 Expand section "3.5.6.4. --bind-as-files 示例" Collapse section "3.5.6.4. --bind-as-files 示例" 3.5.6.4.1. 使用默认 odo 链接 3.5.6.4.2. 使用 --inlined 3.5.6.4.3. 自定义绑定 3.5.7. odo registry Expand section "3.5.7. odo registry" Collapse section "3.5.7. odo registry" 3.5.7.1. 列出 registry 3.5.7.2. 添加 registry 3.5.7.3. 删除 registry 3.5.7.4. 更新 registry 3.5.8. odo service Expand section "3.5.8. odo service" Collapse section "3.5.8. odo service" 3.5.8.1. 创建新服务 Expand section "3.5.8.1. 创建新服务" Collapse section "3.5.8.1. 创建新服务" 3.5.8.1.1. 显示清单 3.5.8.1.2. 配置服务 Expand section "3.5.8.1.2. 配置服务" Collapse section "3.5.8.1.2. 配置服务" 3.5.8.1.2.1. 使用命令行参数 3.5.8.1.2.2. 使用文件 3.5.8.2. 删除服务 3.5.8.3. 列出服务 3.5.8.4. 获取有关服务的信息 3.5.9. odo storage Expand section "3.5.9. odo storage" Collapse section "3.5.9. odo storage" 3.5.9.1. 添加存储卷 3.5.9.2. 列出存储卷 3.5.9.3. 删除存储卷 3.5.9.4. 在特定容器中添加存储 3.5.10. common 标记 3.5.11. JSON 输出 4. Helm CLI Expand section "4. Helm CLI" Collapse section "4. Helm CLI" 4.1. Helm 3 入门 Expand section "4.1. Helm 3 入门" Collapse section "4.1. Helm 3 入门" 4.1.1. 了解 Helm Expand section "4.1.1. 了解 Helm" Collapse section "4.1.1. 了解 Helm" 4.1.1.1. 主要特性 4.1.2. 安装 Helm Expand section "4.1.2. 安装 Helm" Collapse section "4.1.2. 安装 Helm" 4.1.2.1. 对于 Linux 4.1.2.2. 对于 Windows 7/8 4.1.2.3. 对于 Windows 10 4.1.2.4. 对于 macOS: 4.1.3. 在 OpenShift Container Platform 集群中安装 Helm chart 4.1.4. 在 OpenShift Container Platform 上创建自定义 Helm chart 4.2. 配置自定义 Helm Chart 仓库 Expand section "4.2. 配置自定义 Helm Chart 仓库" Collapse section "4.2. 配置自定义 Helm Chart 仓库" 4.2.1. 添加自定义 Helm Chart 仓库 4.2.2. 创建凭证和 CA 证书以添加 Helm Chart 仓库 5. 用于 OpenShift Serverless 的 Knative CLI Expand section "5. 用于 OpenShift Serverless 的 Knative CLI" Collapse section "5. 用于 OpenShift Serverless 的 Knative CLI" 5.1. 主要特性 5.2. 安装 Knative CLI 6. Pipelines CLI (tkn) Expand section "6. Pipelines CLI (tkn)" Collapse section "6. Pipelines CLI (tkn)" 6.1. 安装 tkn Expand section "6.1. 安装 tkn" Collapse section "6.1. 安装 tkn" 6.1.1. 在 Linux 上安装 Red Hat OpenShift Pipelines CLI(tkn) 6.1.2. 使用 RPM 在 Linux 上安装 Red Hat OpenShift Pipelines CLI(tkn) 6.1.3. 在 Windows 上安装 Red Hat OpenShift Pipelines CLI(tkn) 6.1.4. 在 macOS 上安装 Red Hat OpenShift Pipelines CLI(tkn) 6.2. 配置 OpenShift Pipelines tkn CLI Expand section "6.2. 配置 OpenShift Pipelines tkn CLI" Collapse section "6.2. 配置 OpenShift Pipelines tkn CLI" 6.2.1. 启用 tab 自动完成功能 6.3. OpenShift Pipelines tkn 参考 Expand section "6.3. OpenShift Pipelines tkn 参考" Collapse section "6.3. OpenShift Pipelines tkn 参考" 6.3.1. 基本语法 6.3.2. 全局选项 6.3.3. 工具命令 Expand section "6.3.3. 工具命令" Collapse section "6.3.3. 工具命令" 6.3.3.1. tkn 6.3.3.2. completion [shell] 6.3.3.3. version 6.3.4. Pipelines 管理命令 Expand section "6.3.4. Pipelines 管理命令" Collapse section "6.3.4. Pipelines 管理命令" 6.3.4.1. pipeline 6.3.4.2. pipeline delete 6.3.4.3. pipeline describe 6.3.4.4. pipeline list 6.3.4.5. pipeline logs 6.3.4.6. pipeline start 6.3.5. PipelineRun 命令 Expand section "6.3.5. PipelineRun 命令" Collapse section "6.3.5. PipelineRun 命令" 6.3.5.1. pipelinerun 6.3.5.2. pipelinerun cancel 6.3.5.3. pipelinerun delete 6.3.5.4. pipelinerun describe 6.3.5.5. pipelinerun list 6.3.5.6. pipelinerun logs 6.3.6. 任务管理命令 Expand section "6.3.6. 任务管理命令" Collapse section "6.3.6. 任务管理命令" 6.3.6.1. task 6.3.6.2. task delete 6.3.6.3. task describe 6.3.6.4. task list 6.3.6.5. task logs 6.3.6.6. task start 6.3.7. TaskRun 命令 Expand section "6.3.7. TaskRun 命令" Collapse section "6.3.7. TaskRun 命令" 6.3.7.1. taskrun 6.3.7.2. taskrun cancel 6.3.7.3. taskrun delete 6.3.7.4. taskrun describe 6.3.7.5. taskrun list 6.3.7.6. taskrun logs 6.3.8. 条件管理命令 Expand section "6.3.8. 条件管理命令" Collapse section "6.3.8. 条件管理命令" 6.3.8.1. 条件 6.3.8.2. 删除条件 6.3.8.3. condition describe 6.3.8.4. condition list 6.3.9. Pipeline 资源管理命令 Expand section "6.3.9. Pipeline 资源管理命令" Collapse section "6.3.9. Pipeline 资源管理命令" 6.3.9.1. resource 6.3.9.2. resource create 6.3.9.3. resource delete 6.3.9.4. resource describe 6.3.9.5. resource list 6.3.10. ClusterTask 管理命令 Expand section "6.3.10. ClusterTask 管理命令" Collapse section "6.3.10. ClusterTask 管理命令" 6.3.10.1. clustertask 6.3.10.2. clustertask delete 6.3.10.3. clustertask describe 6.3.10.4. clustertask list 6.3.10.5. clustertask start 6.3.11. 触发器管理命令 Expand section "6.3.11. 触发器管理命令" Collapse section "6.3.11. 触发器管理命令" 6.3.11.1. eventlistener 6.3.11.2. eventlistener delete 6.3.11.3. eventlistener describe 6.3.11.4. eventlistener list 6.3.11.5. triggerbinding 6.3.11.6. triggerbinding delete 6.3.11.7. triggerbinding describe 6.3.11.8. triggerbinding list 6.3.11.9. triggertemplate 6.3.11.10. triggertemplate delete 6.3.11.11. triggertemplate describe 6.3.11.12. triggertemplate list 6.3.11.13. clustertriggerbinding 6.3.11.14. clustertriggerbinding delete 6.3.11.15. clustertriggerbinding describe 6.3.11.16. clustertriggerbinding list 7. opm CLI Expand section "7. opm CLI" Collapse section "7. opm CLI" 7.1. 关于 opm 7.2. 安装 opm 7.3. 其他资源 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 6.3.11.11. triggertemplate describe 描述 TriggerTemplate。 示例: 描述命名空间中的 mytemplate TriggerTemplate $ tkn triggertemplate describe mytemplate -n `myspace` Previous Next