Istioctl tool

Alauda Service Mesh 2 supports istioctl, the official command line utility for the Istio project that includes many diagnostic and debugging utilities.

TOC

Installing the Istioctl tool

Install the istioctl command-line utility to debug and diagnose Istio service mesh deployments.

Prerequisites

  • The Alauda Service Mesh 2 Operator is installed and running.
  • You have created at least one Istio resource.

Procedure

  1. Confirm which version of the Istio resource runs on the installation by running the following command:

    kubectl get istio -ojsonpath="{range .items[*]}{.spec.version}{'\n'}{end}" | sed s/^v// | sort

    If there are multiple Istio resources with different versions, choose the latest version. The latest version is displayed last.

  2. Navigate to https://github.com/istio/istio/releases.

  3. Locate the appropriate version and os arch from GitHub releases page.

  4. Extract the istioctl binary file.

    a. If you are using a Linux or Apple Mac operating system, run the following command:

    tar xvf istioctl-<VERSION>-<OS>-<ARCH>.tar.gz

    b. If you are using a Microsoft Windows operating system, use the zip software to extract the archive.

  5. Add the istioctl client to the path by running the following command:

    export PATH=$PWD:$PATH
  6. Confirm that the istioctl client version and the Istio control plane version match or are within one version by running the following command:

    istioctl version

    Example output

    client version: 1.26.3
    control plane version: 1.26.3-asm-r0
    data plane version: 1.26.3-asm-r0