下载问题排查工具

{default_version.<="10%20%E8%E9%E9%99%E5%99"%2"%2" "%1" "%1" "%1" " " ""9 进行的任何类型"

本页面介绍了如何下载 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 

后续步骤