下载问题排查工具

本页介绍了如何下载适用于您的 Cloud Service Mesh。如需调试和查看 Cloud Service Mesh 部署,您需要为 Google Cloud CLI 安装 istioctl 组件。

下载 istioctl

代管式控制平面

  1. 更新 Google Cloud CLI:

    gcloud components update
    
  2. 下载嵌入式 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。使用 改为以下命令:

  1. 更新 Google Cloud CLI

    sudo apt-get update
    
  2. 下载嵌入式 Cloud Service Mesh 问题排查工具:

    sudo apt-get install google-cloud-sdk-istioctl
    

集群内控制平面

Linux

  1. 将 Cloud Service Mesh 安装文件下载到当前工作目录中:

    curl -LO https://storage.googleapis.com/gke-release/asm/istio-1.23.2-asm.2-linux-amd64.tar.gz
  2. 下载签名文件并使用 openssl 验证签名:

    curl -LO https://storage.googleapis.com/gke-release/asm/istio-1.23.2-asm.2-linux-amd64.tar.gz.1.sig
    openssl dgst -verify /dev/stdin -signature istio-1.23.2-asm.2-linux-amd64.tar.gz.1.sig istio-1.23.2-asm.2-linux-amd64.tar.gz <<'EOF'
    -----BEGIN PUBLIC KEY-----
    MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWZrGCUaJJr1H8a36sG4UUoXvlXvZ
    wQfk16sxprI2gOJ2vFFggdq3ixF2h4qNBt0kI7ciDhgpwS8t+/960IsIgw==
    -----END PUBLIC KEY-----
    EOF

    预期输出为 Verified OK

  3. 将文件内容提取到文件系统上的任意位置。例如,如需将内容提取到当前工作目录,请运行以下命令:

    tar xzf istio-1.23.2-asm.2-linux-amd64.tar.gz

    该命令会在当前工作目录中创建一个名为 istio-1.23.2-asm.2 的安装目录,其中包含:

    - 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.
    
  4. 确保您位于 Cloud Service Mesh 安装的根目录。

    cd istio-1.23.2-asm.2

Mac OS

  1. 将 Cloud Service Mesh 安装文件下载到当前工作中 目录:

    curl -LO https://storage.googleapis.com/gke-release/asm/istio-1.23.2-asm.2-osx.tar.gz
  2. 下载签名文件并使用 openssl 验证签名:

    curl -LO https://storage.googleapis.com/gke-release/asm/istio-1.23.2-asm.2-osx.tar.gz.1.sig
    openssl dgst -sha256 -verify /dev/stdin -signature istio-1.23.2-asm.2-osx.tar.gz.1.sig istio-1.23.2-asm.2-osx.tar.gz <<'EOF'
    -----BEGIN PUBLIC KEY-----
    MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWZrGCUaJJr1H8a36sG4UUoXvlXvZ
    wQfk16sxprI2gOJ2vFFggdq3ixF2h4qNBt0kI7ciDhgpwS8t+/960IsIgw==
    -----END PUBLIC KEY-----
    EOF

    预期输出为 Verified OK

  3. 将文件内容提取到文件系统上的任意位置。例如,如需将内容提取到当前工作目录,请运行以下命令:

    tar xzf istio-1.23.2-asm.2-osx.tar.gz

    该命令会在当前工作目录中创建一个名为 istio-1.23.2-asm.2 的安装目录,其中包含:

    - 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.
    
  4. 确保您位于 Cloud Service Mesh 安装的根目录。

    cd istio-1.23.2-asm.2

Windows

  1. 将 Cloud Service Mesh 安装文件下载到当前工作目录中:

    curl -LO https://storage.googleapis.com/gke-release/asm/istio-1.23.2-asm.2-win.zip
  2. 下载签名文件并使用 openssl 验证签名:

    curl -LO https://storage.googleapis.com/gke-release/asm/istio-1.23.2-asm.2-win.zip.1.sig
    openssl dgst -verify - -signature istio-1.23.2-asm.2-win.zip.1.sig istio-1.23.2-asm.2-win.zip <<'EOF'
    -----BEGIN PUBLIC KEY-----
    MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWZrGCUaJJr1H8a36sG4UUoXvlXvZ
    wQfk16sxprI2gOJ2vFFggdq3ixF2h4qNBt0kI7ciDhgpwS8t+/960IsIgw==
    -----END PUBLIC KEY-----
    EOF

    预期输出为 Verified OK

  3. 将文件内容提取到文件系统上的任意位置。例如,如需将内容提取到当前工作目录,请运行以下命令:

    tar xzf istio-1.23.2-asm.2-win.zip

    该命令会在当前工作目录中创建一个名为 istio-1.23.2-asm.2 的安装目录,其中包含:

    - 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.
    
  4. 确保您位于 Cloud Service Mesh 安装的根目录。

    cd istio-1.23.2-asm.2

后续步骤