下载问题排查工具

{default_version.


%20%20%20%E7%99%E7%97%90%E7%99%9%E8%E%E7%9F%B1%20%20%20%E4%E2%E7%9B%21%20%20%E2B%E2%E7%97%20%20%23%24%23%20%E7%E7%E7%97%23%23%21%21%21%21%20%23%2023 及{3}B2B{3} V3" "%1" "%20%1" "%20%1" "%21%20%10 吗%20%20%10808083223%23%23 中为什么%2B2 解释 {/2}

本页面介绍了如何下载 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 -linux-amd64.tar.gz
  2. 下载签名文件并使用 openssl 验证签名:

    curl -LO -linux-amd64.tar.gz.1.sig
    openssl dgst -verify /dev/stdin -signature -linux-amd64.tar.gz.1.sig -linux-amd64.tar.gz <<'EOF'
    -----BEGIN PUBLIC KEY-----
    MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWZrGCUaJJr1H8a36sG4UUoXvlXvZ
    wQfk16sxprI2gOJ2vFFggdq3ixF2h4qNBt0kI7ciDhgpwS8t+/960IsIgw==
    -----END PUBLIC KEY-----
    EOF

    预期输出为 Verified OK

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

    tar xzf -linux-amd64.tar.gz

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

    - 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 

Mac OS

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

    curl -LO -osx.tar.gz
  2. 下载签名文件并使用 openssl 验证签名:

    curl -LO -osx.tar.gz.1.sig
    openssl dgst -sha256 -verify /dev/stdin -signature -osx.tar.gz.1.sig -osx.tar.gz <<'EOF'
    -----BEGIN PUBLIC KEY-----
    MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWZrGCUaJJr1H8a36sG4UUoXvlXvZ
    wQfk16sxprI2gOJ2vFFggdq3ixF2h4qNBt0kI7ciDhgpwS8t+/960IsIgw==
    -----END PUBLIC KEY-----
    EOF

    预期输出为 Verified OK

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

    tar xzf -osx.tar.gz

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

    - 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 

Windows

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

    curl -LO -win.zip
  2. 下载签名文件并使用 openssl 验证签名:

    curl -LO -win.zip.1.sig
    openssl dgst -verify - -signature -win.zip.1.sig -win.zip <<'EOF'
    -----BEGIN PUBLIC KEY-----
    MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEWZrGCUaJJr1H8a36sG4UUoXvlXvZ
    wQfk16sxprI2gOJ2vFFggdq3ixF2h4qNBt0kI7ciDhgpwS8t+/960IsIgw==
    -----END PUBLIC KEY-----
    EOF

    预期输出为 Verified OK

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

    tar xzf -win.zip

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

    - 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 

后续步骤