存取 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 管理介面

在網頁瀏覽器中開啟 https://<understand-route>/ad/admin,並使用 setup.json 設定檔中 userAccess.password 參數所指定的管理員憑證登入。

將服務連線到擴充功能

若要連線至 Z Understand 和 Refactor,請在 Bob IDE 擴充功能中設定以下兩項設定:

設定值
Bob-z > Understand: URLhttps://<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 擴充功能設定:

  1. 開啟設定(macOS 使用 Cmd+,,Windows 和 Linux 使用 Ctrl+,)。
  2. 搜尋 Bob-z Understand。
  3. 將 Understand: URL 設定為你之前擷取的 Refactor 路由:https://<refactor-route>。
  4. 將 Understand: Certificate Path 設定為擷取的 server.crt 檔案的絕對本地路徑,例如 /home/user/certs/server.crt。
注意:

當叢集使用自簽章憑證或自訂憑證授權單位(CA)時,需要提供憑證路徑。沒有憑證,擴充功能將無法與 Z Understand 服務建立安全連線。

這個主題如何?