Chapter 8. Istioctl tool
Use the istioctl command line utility to perform diagnostic and debugging tasks for OpenShift Service Mesh 3 service mesh components.
8.1. Support for Istioctl Copy linkLink copied to clipboard!
OpenShift Service Mesh 3 supports a selection of Istioctl commands.
- Supported Istioctl commands
| Command | Description |
|---|---|
|
|
Manage the control plane ( |
|
| Analyze the Istio configuration and print validation messages |
|
| Generate the autocompletion script for the specified shell |
|
| Create a secret with credentials to allow Istio to access remote Kubernetes API servers |
|
| Display help about any command |
|
| Retrieve information about the proxy configuration from Envoy (Kubernetes only) |
|
| Retrieve the synchronization status of each Envoy in the mesh |
|
|
List the remote clusters each |
|
| Validate the Istio policy and rules files |
|
| Print the build version information |
|
| Manage the waypoint configuration |
|
| Update or retrieve the current Ztunnel configuration. |
8.2. Installing the Istioctl tool Copy linkLink copied to clipboard!
Install the istioctl command-line utility to debug and diagnose Istio service mesh deployments.
Prerequisites
- You have access to the OpenShift Container Platform web console.
- You have installed the OpenShift Service Mesh 3 Operator.
-
You have created at least one
Istioresource.
Procedure
Confirm which version of the
Istioresource runs on the installation by running the following command:$ oc get istio -ojsonpath="{range .items[*]}{.spec.version}{'\n'}{end}" | sed s/^v// | sortIf there are many
Istioresources with different versions, select the latest version. The latest version is displayed last.- In the OpenShift Container Platform web console, click the Help icon and select Command Line Tools.
- Click Download istioctl. Choose the version and architecture that matches your system.
Extract the
istioctlbinary file.If you are using a Linux operating system, run the following command:
$ tar xzf istioctl-<VERSION>-<OS>-<ARCH>.tar.gz- If you are using an Apple Mac operating system, unpack and extract the archive.
- If you are using a Microsoft Windows operating system, use the zip software to extract the archive.
Move to the uncompressed directory by running the following command:
$ cd istioctl-<VERSION>-<OS>-<ARCH>Add the
istioctlclient to the path by running the following command:$ export PATH=$PWD:$PATHConfirm that the
istioctlclient version and the Istio control plane version match or are within one version by running the following command:$ istioctl versionYou should see output similar to the following example:
client version: 1.20.0 control plane version: 1.24.3_ossm data plane version: none