下載疑難排解工具
本頁面說明如何下載 Cloud Service Mesh 的疑難排解工具。如要對 Cloud Service Mesh 部署作業進行偵錯及檢查,您必須安裝 Google Cloud CLI 的 istioctl 元件。
下載 istioctl
受管理的控制層
- 更新 Google Cloud CLI: - gcloud components update
- 下載內嵌的 Cloud Service Mesh 疑難排解工具: - gcloud components install istioctl
如果您收到 You cannot perform this action because the
Google Cloud CLI component manager is disabled for this installation 錯誤訊息,表示您先前曾透過 Debian/Ubuntu 安裝 Google Cloud CLI。請改用下列指令:
- 更新 Google Cloud CLI - sudo apt-get update
- 下載內嵌的 Cloud Service Mesh 疑難排解工具: - sudo apt-get install google-cloud-sdk-istioctl
叢集內控制層
Linux
- 將 Cloud Service Mesh 安裝檔案下載至目前的工作目錄: - curl -LO https://storage.googleapis.com/gke-release/asm/istio-1.21.5-asm.34-linux-amd64.tar.gz 
- 下載簽章檔案,並使用 - openssl驗證簽章:- curl -LO https://storage.googleapis.com/gke-release/asm/istio-1.21.5-asm.34-linux-amd64.tar.gz.1.sig openssl dgst -verify /dev/stdin -signature istio-1.21.5-asm.34-linux-amd64.tar.gz.1.sig istio-1.21.5-asm.34-linux-amd64.tar.gz <<'EOF' -----BEGIN PUBLIC KEY----- MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWZrGCUaJJr1H8a36sG4UUoXvlXvZ wQfk16sxprI2gOJ2vFFggdq3ixF2h4qNBt0kI7ciDhgpwS8t+/960IsIgw== -----END PUBLIC KEY----- EOF - 預期的輸出內容為: - Verified OK。
- 將檔案的內容解壓縮到您檔案系統上的任何位置,舉例來說,如要將內容解壓縮至目前的工作目錄: - tar xzf istio-1.21.5-asm.34-linux-amd64.tar.gz - 這個指令會在目前的工作目錄中建立名為 - istio-1.21.5-asm.34的安裝目錄,其中包含:- - Sample applications in the `samples` directory. - The `istioctl` command-line tool that you use to install Cloud Service Mesh is in the <code>bin</code> directory. - The Cloud Service Mesh configuration profiles are in the `manifests/profiles` directory.
- 請確認您位於 Cloud Service Mesh 安裝的根目錄中。 - cd istio-1.21.5-asm.34 
Mac OS
- 將 Cloud Service Mesh 安裝檔案下載到目前的工作目錄: - curl -LO https://storage.googleapis.com/gke-release/asm/istio-1.21.5-asm.34-osx.tar.gz 
- 下載簽章檔案,然後使用 - openssl驗證簽章:- curl -LO https://storage.googleapis.com/gke-release/asm/istio-1.21.5-asm.34-osx.tar.gz.1.sig openssl dgst -sha256 -verify /dev/stdin -signature istio-1.21.5-asm.34-osx.tar.gz.1.sig istio-1.21.5-asm.34-osx.tar.gz <<'EOF' -----BEGIN PUBLIC KEY----- MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWZrGCUaJJr1H8a36sG4UUoXvlXvZ wQfk16sxprI2gOJ2vFFggdq3ixF2h4qNBt0kI7ciDhgpwS8t+/960IsIgw== -----END PUBLIC KEY----- EOF - 預期的輸出內容為: - Verified OK。
- 將檔案的內容解壓縮到您檔案系統上的任何位置,舉例來說,如要將內容解壓縮至目前的工作目錄: - tar xzf istio-1.21.5-asm.34-osx.tar.gz - 這個指令會在目前的工作目錄中建立名為 - istio-1.21.5-asm.34的安裝目錄,其中包含:- - Sample applications in the `samples` directory. - The `istioctl` command-line tool that you use to install Cloud Service Mesh is in the <code>bin</code> directory. - The Cloud Service Mesh configuration profiles are in the `manifests/profiles` directory.
- 請確認您位於 Cloud Service Mesh 安裝的根目錄中。 - cd istio-1.21.5-asm.34 
Windows
- 將 Cloud Service Mesh 安裝檔案下載到目前的工作目錄: - curl -LO https://storage.googleapis.com/gke-release/asm/istio-1.21.5-asm.34-win.zip 
- 下載簽章檔案,然後使用 - openssl驗證簽章:- curl -LO https://storage.googleapis.com/gke-release/asm/istio-1.21.5-asm.34-win.zip.1.sig openssl dgst -verify - -signature istio-1.21.5-asm.34-win.zip.1.sig istio-1.21.5-asm.34-win.zip <<'EOF' -----BEGIN PUBLIC KEY----- MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWZrGCUaJJr1H8a36sG4UUoXvlXvZ wQfk16sxprI2gOJ2vFFggdq3ixF2h4qNBt0kI7ciDhgpwS8t+/960IsIgw== -----END PUBLIC KEY----- EOF - 預期的輸出內容為: - Verified OK。
- 將檔案的內容解壓縮到您檔案系統上的任何位置,舉例來說,如要將內容解壓縮至目前的工作目錄: - tar xzf istio-1.21.5-asm.34-win.zip - 這個指令會在目前的工作目錄中建立名為 - istio-1.21.5-asm.34的安裝目錄,其中包含:- - Sample applications in the `samples` directory. - The `istioctl` command-line tool that you use to install Cloud Service Mesh is in the <code>bin</code> directory. - The Cloud Service Mesh configuration profiles are in the `manifests/profiles` directory.
- 請確認您位於 Cloud Service Mesh 安裝的根目錄中。 - cd istio-1.21.5-asm.34