访问 Z Understand 和 Refactor
检索路由主机名并连接到 Z Understand 管理界面和 IBM Bob 扩展。
检索路由主机名
工作负载达到 Ready 状态后,检索路由主机名。
Z Understand 路由
oc get ingress understand \
-n <instance-namespace> \
-o jsonpath='{.spec.rules[0].host}'Refactor 路由
oc get ingress refactor \
-n <instance-namespace> \
-o jsonpath='{.spec.rules[0].host}'路由遵循 <name>-<namespace>.apps.<ocp-domain> 格式。
访问 Z Understand 管理界面
在 Web 浏览器中打开 https://<understand-route>/ad/admin,使用 setup.json 配置文件中 userAccess.password 参数指定的管理员凭证登录。
将服务连接到扩展
要连接到 Z Understand 和 Refactor,请在 Bob IDE 扩展中配置以下两项设置:
| 设置 | 值 |
|---|---|
Bob-z > Understand: URL | https://<refactor-route> |
Bob-z > Understand: Certificate Path | 本地机器上提取的 server.crt 文件的绝对路径 |
通过运行以下命令,从实例命名空间中的 bobz-refactor-config Kubernetes Secret 中提取 server.crt:
oc extract secret/bobz-refactor-config -n <instance-namespace> --keys=server.crt配置 Bob IDE 扩展设置:
- 打开设置(在 macOS 上按
Cmd+,,在 Windows 和 Linux 上按Ctrl+,)。 - 搜索 Bob-z Understand。
- 将 Understand: URL 设置为先前获取的 Refactor 路由:
https://<refactor-route>。 - 将 Understand: Certificate Path 设置为提取的
server.crt文件的绝对本地路径,例如/home/user/certs/server.crt。
注意:
当集群使用自签名证书或自定义证书颁发机构(CA)时,需要指定证书路径。如果没有该证书,扩展将无法建立与 Z Understand 服务的安全连接。
这个主题怎么样?