コンソールURLの取得

Verrazzanoがインストールするコンソールのエンドポイントの取得

インストール・エンドポイントにアクセスするには、Verrazzano CLIまたはkubectlを使用します:

Verrazzano CLI

次のコマンドを発行して、Status.Instanceフィールドを確認すると、これらのコンソール用のエンドポイントを取得できます:

$ vz status

結果の出力は次のようになります:

Verrazzano Status
  Name: verrazzano
  Namespace: default
  Version: 1.5.0
  State: Ready
  Profile: dev
  Available Components: 24/24
  Access Endpoints:
    argoCDUrl: https://argocd.default.11.22.33.44.nip.io
    consoleUrl: https://verrazzano.default.11.22.33.44.nip.io
    grafanaUrl: https://grafana.vmi.system.default.11.22.33.44.nip.io
    jaegerURL: https://jaeger.default.11.22.33.44.nip.io
    keyCloakUrl: https://keycloak.default.11.22.33.44.nip.io
    kialiUrl: https://kiali.vmi.system.default.11.22.33.44.nip.io
    openSearchDashboardsUrl: https://osd.vmi.system.default.11.22.33.44.nip.io
    openSearchUrl: https://opensearch.vmi.system.default.11.22.33.44.nip.io
    prometheusUrl: https://prometheus.vmi.system.default.11.22.33.44.nip.io
    rancherUrl: https://rancher.default.11.22.33.44.nip.io
    thanosQueryUrl: https://thanos-query.default.11.22.33.44.nip.io
    thanosRulerUrl: https://thanos-ruler.default.11.22.33.44.nip.io

kubectl

次のコマンドを発行して、Status.Instanceフィールドを確認すると、これらのコンソール用のエンドポイントを取得できます:

$ kubectl get vz -o yaml

結果の出力は、次のようになります(関連する部分のみを表示するために短縮してあります):

  ...
  status:
    conditions:
    - lastTransitionTime: "2021-06-30T03:10:00Z"
      message: Verrazzano install in progress
      status: "True"
      type: InstallStarted
    - lastTransitionTime: "2021-06-30T03:18:33Z"
      message: Verrazzano install completed successfully
      status: "True"
      type: InstallComplete
    instance:
      argoCDUrl: https://argocd.default.11.22.33.44.nip.io
      consoleUrl: https://verrazzano.default.11.22.33.44.nip.io
      grafanaUrl: https://grafana.vmi.system.default.11.22.33.44.nip.io
      keyCloakUrl: https://keycloak.default.11.22.33.44.nip.io
      kialiUrl: https://kiali.vmi.system.default.11.22.33.44.nip.io
      opensearchDashboardsUrl: https://osd.vmi.system.default.11.22.33.44.nip.io
      opensearchUrl: https://opensearch.vmi.system.default.11.22.33.44.nip.io
      prometheusUrl: https://prometheus.vmi.system.default.11.22.33.44.nip.io
      rancherUrl: https://rancher.default.11.22.33.44.nip.io
      thanosQueryUrl: https://thanos-query.default.11.22.33.44.nip.io

jqがインストールされている場合、次のコマンドを使用してインスタンスURLを直接取得できます

$ kubectl get vz -o jsonpath="{.items[].status.instance}" | jq .

次に、出力の例を示します。

{
"argoCDUrl": https://argocd.default.11.22.33.44.nip.io
"consoleUrl": "https://verrazzano.default.11.22.33.44.nip.io",
"grafanaUrl": "https://grafana.vmi.system.default.11.22.33.44.nip.io",
"keyCloakUrl": "https://keycloak.default.11.22.33.44.nip.io",
"kialiUrl": "https://kiali.vmi.system.default.11.22.33.44.nip.io",
"opensearchUrl": "https://opensearch.vmi.system.default.11.22.33.44.nip.io",
"opensearchDashboardsUrl": "https://osd.vmi.system.default.11.22.33.44.nip.io",
"prometheusUrl": "https://prometheus.vmi.system.default.11.22.33.44.nip.io",
"rancherUrl": "https://rancher.default.11.22.33.44.nip.io"
"thanosQueryUrl": "https://thanos-query.default.11.22.33.44.nip.io"
}