6.3. 管理 Service Registry 环境变量
Service Registry Operator 管理最常见的 Service Registry 配置,但有一些选项可以手动调整。您可以通过在 Service Registry Deployment 资源中设置环境变量来更新它们。如果 ApicurioRegistry CR 中没有具体配置选项,您可以使用环境变量来调整它。
流程
- OpenShift Web 控制台
- 选择 Installed Operators 选项卡,然后选择 Red Hat Integration - Service Registry Operator。
-
在
Apicurio Registry选项卡上,点 Service Registry 部署的 ApicurioRegistry CR。 -
在主概览页面中,查看
managedResources部分,其中包含由 Operator 管理的Deployment的名称,以部署您的 Service Registry 实例。 -
在左侧菜单中,找到 Workloads > Deployments 中的部署。
-
使用正确的名称选择
Deployment,再选择 Environment 选项卡。 - 您可以将环境变量添加到 Single values(env) 部分。
- 点底部的 Save。
- OpenShift CLI
- 选择安装 Service Registry 的项目。
-
运行
oc get apicurioregistry以获取ApicurioRegistryCR 列表 -
在代表您要配置的 Service Registry 实例的 CR 上运行
oc describe。 -
查看
status部分中的managedResource。 -
找到
部署并输入oc edit。 -
在
spec.template.spec.containers[0].env部分添加或修改环境变量。