6.3. 管理 Apicurio Registry 环境变量

Service Registry Operator 管理最常见的 Apicurio Registry 配置,但有些选项可以手动调整。您可以通过在 Apicurio Registry Deployment 资源中设置环境变量来更新它们。如果 ApicurioRegistry CR 中没有特定的配置选项,您可以使用环境变量来调整它。

流程

OpenShift web 控制台
  1. 选择 Installed Operators 选项卡,然后选择 Red Hat Integration - Service Registry Operator
  2. Apicurio Registry 选项卡中,点 Apicurio Registry 部署的 ApicurioRegistry CR。
  3. 在主概览页面中,查看 managedResources 部分,其中包含由 Operator 管理的 Deployment 的名称,以部署您的 Apicurio Registry 实例。
  4. 在左侧菜单中的 Workloads > Deployments 中查找 Deployment
  5. 选择具有正确名称的 Deployment,然后选择 Environment 选项卡。
  6. 您可以将环境变量添加到 Single values (env) 部分。
  7. 点底部的 Save
OpenShift CLI
  1. 选择安装 Apicurio Registry 的项目。
  2. 运行 oc get apicurioregistry 以获取 ApicurioRegistry CR 列表
  3. 在代表您要配置的 Apicurio Registry 实例的 CR 上运行 oc describe
  4. 查看 status 部分中的 managedResource
  5. 找到 Deployment 并输入 oc edit
  6. spec.template.spec.containers[0].env 部分中添加或修改环境变量。