Este contenido no está disponible en el idioma seleccionado.
Chapter 8. Istioctl tool
OpenShift Service Mesh 3 supports istioctl
, the command line utility for the Istio project that includes many diagnostic and debugging utilities.
8.1. Support for Istioctl Copiar enlaceEnlace copiado en el portapapeles!
OpenShift Service Mesh 3 supports a selection of 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 out the build version information |
| Manage the waypoint configuration |
| Update or retrieve the current Ztunnel configuration. |
8.2. Installing the Istioctl tool Copiar enlaceEnlace copiado en el portapapeles!
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.
- The OpenShift Service Mesh 3 Operator is installed and running.
-
You have created at least one
Istio
resource.
Procedure
Confirm which version of the
Istio
resource runs on the installation by running the following command:oc get istio -ojsonpath="{range .items[*]}{.spec.version}{'\n'}{end}" | sed s/^v// | sort
$ oc get istio -ojsonpath="{range .items[*]}{.spec.version}{'\n'}{end}" | sed s/^v// | sort
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If there are multiple
Istio
resources with different versions, choose 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
istioctl
binary file.If you are using a Linux operating system, run the following command:
tar xzf istioctl-<VERSION>-<OS>-<ARCH>.tar.gz
$ tar xzf istioctl-<VERSION>-<OS>-<ARCH>.tar.gz
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 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>
$ cd istioctl-<VERSION>-<OS>-<ARCH>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add the
istioctl
client to the path by running the following command:export PATH=$PWD:$PATH
$ export PATH=$PWD:$PATH
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 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
$ istioctl version
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Sample output:
client version: 1.20.0 control plane version: 1.24.3_ossm data plane version: none
client version: 1.20.0 control plane version: 1.24.3_ossm data plane version: none
Copy to Clipboard Copied! Toggle word wrap Toggle overflow