Mengakses Z Understand and Refactor

Ambil hostname route dan hubungkan ke antarmuka administrasi Z Understand serta ekstensi IBM Bob.

Mengambil hostname route

Setelah workload mencapai status Ready, ambil hostname route.

Route Z Understand

oc get ingress understand \
  -n <instance-namespace> \
  -o jsonpath='{.spec.rules[0].host}'

Route Refactor

oc get ingress refactor \
  -n <instance-namespace> \
  -o jsonpath='{.spec.rules[0].host}'

Route mengikuti pola <name>-<namespace>.apps.<ocp-domain>.

Mengakses antarmuka administrasi Z Understand

Buka https://<understand-route>/ad/admin di browser web dan masuk menggunakan kredensial administrator yang ditentukan dalam parameter userAccess.password pada file konfigurasi setup.json-mu.

Menghubungkan layanan ke ekstensi

Untuk terhubung ke Z Understand and Refactor, konfigurasikan dua pengaturan berikut di ekstensi Bob IDE:

PengaturanNilai
Bob-z > Understand: URLhttps://<refactor-route>
Bob-z > Understand: Certificate PathPath absolut ke file server.crt yang diekstrak di mesin lokal

Ekstrak server.crt dari Kubernetes secret bobz-refactor-config di dalam instance namespace-mu dengan menjalankan perintah berikut:

oc extract secret/bobz-refactor-config -n <instance-namespace> --keys=server.crt

Konfigurasikan pengaturan ekstensi Bob IDE:

  1. Buka Settings (Cmd+, di macOS, Ctrl+, di Windows dan Linux).
  2. Cari Bob-z Understand.
  3. Atur Understand: URL ke Refactor route yang telah kamu ambil sebelumnya: https://<refactor-route>.
  4. Atur Understand: Certificate Path ke path lokal absolut dari file server.crt yang diekstrak, misalnya /home/user/certs/server.crt.
Catatan:

Path sertifikat diperlukan ketika cluster menggunakan sertifikat self-signed atau certificate authority (CA) kustom. Tanpa sertifikat, ekstensi tidak dapat membuat koneksi aman ke layanan Z Understand.

Bagaimana topik ini?