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.7.5. 在集群中部署插件
在将镜像推送到 registry 后,您可以将插件部署到集群中。
流程
要将插件部署到集群中,请使用插件名称作为 Helm 发行版本名称安装 Helm chart,作为 Helm 发行版本名称,或由
-n
命令行选项指定的现有命名空间。使用以下命令,提供plugin.image
参数中镜像的位置:helm upgrade -i my-plugin charts/openshift-console-plugin -n my-plugin-namespace --create-namespace --set plugin.image=my-plugin-image-location
$ helm upgrade -i my-plugin charts/openshift-console-plugin -n my-plugin-namespace --create-namespace --set plugin.image=my-plugin-image-location
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 其中:
n <my-plugin-namespace>
- 指定要将插件部署到的现有命名空间。
--create-namespace
- 可选:如果部署到新命名空间,请使用此参数。
--set plugin.image=my-plugin-image-location
-
指定
plugin.image
参数中镜像的位置。
可选: 您可以使用
charts/openshift-console-plugin/values.yaml
文件中的一组支持的参数来指定任何其他参数。Copy to Clipboard Copied! Toggle word wrap Toggle overflow
验证
-
您可以通过 Administration
Cluster Settings Configuration Console operator.openshift.io
Console plugins 或 Overview 页中查看已启用的插件列表。
注意
显示新插件配置可能需要几分钟时间。如果没有看到插件,则在最近启用了插件时,可能需要刷新浏览器。如果您在运行时收到任何错误,请在浏览器开发人员工具中检查 JS 控制台,以查看插件代码中的任何错误。