istioctl

    A group of commands used to manage istiod configuration

    1. istioctl istiod [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--selector &lt;string&gt;</code></td><td><code>-l</code></td><td>label selector (defaultapp=istiod)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)
    1. # Retrieve information about istiod configuration.
    2. istioctl admin log

    istioctl admin log

    Retrieve or update logging levels of istiod components.

    1. istioctl admin log [<pod-name>] [--level <scope>:<level>][--stack-trace-level <scope>:<level>]|[-r|--reset]|[--output|-o short|yaml] [flags]
    1. istioctl admin l [<pod-name>] [--level <scope>:<level>][--stack-trace-level <scope>:<level>]|[-r|--reset]|[--output|-o short|yaml] [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--ctrlz_port &lt;int&gt;</code></td><td></td><td>ControlZ port (default `9876`)</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —level <string>Comma-separated list of output logging level for scopes in format <scope>:<level>[,<scope>:<level>,…]Possible values for <level>: none, error, warn, info, debug (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —output <string>-oOutput format: one of json|short (default short)
    —reset-rReset levels to default value. (info)
    —selector <string>-llabel selector (default app=istiod)
    —stack-trace-level <string>Comma-separated list of stack trace level for scopes in format <scope>:<stack-trace-level>[,<scope>:<stack-trace-level>,…] Possible values for <stack-trace-level>: none, error, warn, info, debug (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # Retrieve information about istiod logging levels.
    2. istioctl admin log
    3. # Retrieve information about istiod logging levels on a specific control plane pod.
    4. istioctl admin l istiod-5c868d8bdd-pmvgg
    5. # Update levels of the specified loggers.
    6. istioctl admin log --level ads:debug,authorization:debug
    7. # Reset levels of all the loggers to default value (info).
    8. istioctl admin log -r

    istioctl analyze

    Analyze Istio configuration and print validation messages

    1. istioctl analyze <file>... [flags]
    FlagsShorthandDescription
    —all-namespaces-AAnalyze all namespaces
    —colorDefault true. Disable with ‘=false’ or set $TERM to dumb
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--failure-threshold &lt;Level&gt;</code></td><td></td><td>The severity level of analysis at which to set a non-zero exit code. Valid values: [Info Warning Error] (default `Error`)</td></tr><tr><td><code>--ignore-unknown</code></td><td></td><td>Don't complain about un-parseable input documents, for cases where analyze should run only on k8s compliant inputs.</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —list-analyzers-LList the analyzers available to run. Suppresses normal execution.
    —meshConfigFile <string>Overrides the mesh config values to use for analysis. (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —output <string>-oOutput format: one of [log json yaml] (default log)
    —output-threshold <Level>The severity level of analysis at which to display messages. Valid values: [Info Warning Error] (default Info)
    —recursive-RProcess directory arguments recursively. Useful when you want to analyze related manifests organized within the same directory.
    —suppress <stringArray>-SSuppress reporting a message code on a specific resource. Values are supplied in the form <code>=<resource> (e.g. ‘—suppress “IST0102=DestinationRule primary-dr.default”‘). Can be repeated. You can include the wildcard character ‘‘ to support a partial match (e.g. ‘—suppress “IST0102=DestinationRule .default” ). (default [])
    —timeout <duration>The duration to wait before failing (default 30s)
    —use-kube-kUse live Kubernetes cluster for analysis. Set —use-kube=false to analyze files only.
    —verbose-vEnable verbose output
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    Examples

    1. # Analyze the current live cluster
    2. istioctl analyze
    3. # Analyze the current live cluster, simulating the effect of applying additional yaml files
    4. istioctl analyze a.yaml b.yaml my-app-config/
    5. # Analyze the current live cluster, simulating the effect of applying a directory of config recursively
    6. istioctl analyze --recursive my-istio-config/
    7. # Analyze yaml files without connecting to a live cluster
    8. istioctl analyze --use-kube=false a.yaml b.yaml my-app-config/
    9. # Analyze the current live cluster and suppress PodMissingProxy for pod mypod in namespace 'testing'.
    10. istioctl analyze -S "IST0103=Pod mypod.testing"
    11. # Analyze the current live cluster and suppress PodMissingProxy for all pods in namespace 'testing',
    12. # and suppress MisplacedAnnotation on deployment foobar in namespace default.
    13. istioctl analyze -S "IST0103=Pod *.testing" -S "IST0107=Deployment foobar.default"
    14. # List available analyzers
    15. istioctl analyze -L

    istioctl authz

    (authz is experimental. Use `istioctl experimental authz`)

    1. istioctl authz [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    istioctl bug-report

    bug-report selectively captures cluster information and logs into an archive to help diagnose problems. Proxy logs can be filtered using: —include|—exclude ns1,ns2…/dep1,dep2…/pod1,pod2…/lbl1=val1,lbl2=val2…/ann1=val1,ann2=val2…/cntr1,cntr… where ns=namespace, dep=deployment, lbl=label, ann=annotation, cntr=container

    The filter spec is interpreted as ‘must be in (ns1 OR ns2) AND (dep1 OR dep2) AND (cntr1 OR cntr2)…’ The log will be included only if the container matches at least one include filter and does not match any exclude filters. All parts of the filter are optional and can be omitted e.g. ns1//pod1 filters only for namespace ns1 and pod1. All names except label and annotation keys support ‘*‘ glob matching pattern.

    e.g. —include ns1,ns2 (only namespaces ns1 and ns2) —include n*//p*/l=v* (pods with name beginning with ‘p’ in namespaces beginning with ‘n’ and having label ‘l’ with value beginning with ‘v’.)

    1. istioctl bug-report [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--critical-errs &lt;stringSlice&gt;</code></td><td></td><td>List of comma separated glob patterns to match against log error strings. If any pattern matches an error in the log, the logs is given the highest priority for archive inclusion. (default `[]`)</td></tr><tr><td><code>--dir &lt;string&gt;</code></td><td></td><td>Set a specific directory for temporary artifact storage. (default)
    —dry-runOnly log commands that would be run, don’t fetch or write.
    —duration <duration>How far to go back in time from end-time for log entries to include in the archive. Default is infinity. If set, —start-time must be unset. (default 0s)
    —end-time <string>End time for the range of log entries to include in the archive. Default is now. (default )</td></tr><tr><td><code>--exclude &lt;stringSlice&gt;</code></td><td></td><td>Spec for which pod's proxy logs to exclude from the archive, after the include spec is processed. See above for format and examples. (default `["kube-node-lease,kube-public,kube-system,local-path-storage"]`)</td></tr><tr><td><code>--filename &lt;string&gt;</code></td><td><code>-f</code></td><td>Path to a file containing configuration in YAML format. The file contents are applied over the default values and flag settings, with lists being replaced per JSON merge semantics. (default)
    —full-secretsIf set, secret contents are included in output.
    —ignore-errs <stringSlice>List of comma separated glob patterns to match against log error strings. Any error matching these patterns is ignored when calculating the log importance heuristic. (default [])
    —include <stringSlice>Spec for which pod’s proxy logs to include in the archive. See above for format and examples. (default [])
    —istio-namespace <string>Namespace where Istio control plane is installed. (default istio-system)
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —start-time <string>Start time for the range of log entries to include in the archive. Default is the infinite past. If set, —duration must be unset. (default `)</td></tr><tr><td><code>--timeout &lt;duration&gt;</code></td><td></td><td>Maximum amount of time to spend fetching logs. When timeout is reached only the logs captured so far are saved to the archive. (default30m0s)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    istioctl bug-report version

    Prints out build version information

    1. istioctl bug-report version [flags]
    FlagsShorthandDescription
    —context <string>Name of the kubeconfig Context to use. (default )</td></tr><tr><td><code>--critical-errs &lt;stringSlice&gt;</code></td><td></td><td>List of comma separated glob patterns to match against log error strings. If any pattern matches an error in the log, the logs is given the highest priority for archive inclusion. (default `[]`)</td></tr><tr><td><code>--dir &lt;string&gt;</code></td><td></td><td>Set a specific directory for temporary artifact storage. (default)
    —dry-runOnly log commands that would be run, don’t fetch or write.
    —duration <duration>How far to go back in time from end-time for log entries to include in the archive. Default is infinity. If set, —start-time must be unset. (default 0s)
    —end-time <string>End time for the range of log entries to include in the archive. Default is now. (default )</td></tr><tr><td><code>--exclude &lt;stringSlice&gt;</code></td><td></td><td>Spec for which pod's proxy logs to exclude from the archive, after the include spec is processed. See above for format and examples. (default `["kube-node-lease,kube-public,kube-system,local-path-storage"]`)</td></tr><tr><td><code>--filename &lt;string&gt;</code></td><td><code>-f</code></td><td>Path to a file containing configuration in YAML format. The file contents are applied over the default values and flag settings, with lists being replaced per JSON merge semantics. (default)
    —full-secretsIf set, secret contents are included in output.
    —ignore-errs <stringSlice>List of comma separated glob patterns to match against log error strings. Any error matching these patterns is ignored when calculating the log importance heuristic. (default [])
    —include <stringSlice>Spec for which pod’s proxy logs to include in the archive. See above for format and examples. (default [])
    —istio-namespace <string>Namespace where Istio control plane is installed. (default istio-system)
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cPath to kube config. (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —output <string>-oOne of ‘yaml’ or ‘json’. (default )</td></tr><tr><td><code>--short</code></td><td><code>-s</code></td><td>Use --short=false to generate full version information</td></tr><tr><td><code>--start-time &lt;string&gt;</code></td><td></td><td>Start time for the range of log entries to include in the archive. Default is the infinite past. If set, --duration must be unset. (default)
    —timeout <duration>Maximum amount of time to spend fetching logs. When timeout is reached only the logs captured so far are saved to the archive. (default 30m0s)
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    istioctl completion

    Generate the autocompletion script for istioctl for the specified shell. See each sub-command’s help for details on how to use the generated script.

    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    istioctl completion bash

    Generate the autocompletion script for the bash shell.

    This script depends on the ‘bash-completion’ package. If it is not installed already, you can install it via your OS’s package manager.

    To load completions in your current shell session:

    source <(istioctl completion bash)

    To load completions for every new session, execute once:

    #### Linux:

    istioctl completion bash > /etc/bash_completion.d/istioctl

    #### macOS:

    istioctl completion bash > $(brew —prefix)/etc/bash_completion.d/istioctl

    You will need to start a new shell for this setup to take effect.

    1. istioctl completion bash
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--no-descriptions</code></td><td></td><td>disable completion descriptions</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    istioctl completion fish

    Generate the autocompletion script for the fish shell.

    To load completions in your current shell session:

    istioctl completion fish | source

    To load completions for every new session, execute once:

    istioctl completion fish > ~/.config/fish/completions/istioctl.fish

    You will need to start a new shell for this setup to take effect.

    1. istioctl completion fish [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--no-descriptions</code></td><td></td><td>disable completion descriptions</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    istioctl completion powershell

    Generate the autocompletion script for powershell.

    To load completions in your current shell session:

    istioctl completion powershell | Out-String | Invoke-Expression

    To load completions for every new session, add the output of the above command to your powershell profile.

    1. istioctl completion powershell [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--no-descriptions</code></td><td></td><td>disable completion descriptions</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    istioctl completion zsh

    Generate the autocompletion script for the zsh shell.

    If shell completion is not already enabled in your environment you will need to enable it. You can execute the following once:

    echo “autoload -U compinit; compinit” >> ~/.zshrc

    To load completions in your current shell session:

    source <(istioctl completion zsh); compdef _istioctl istioctl

    To load completions for every new session, execute once:

    #### Linux:

    istioctl completion zsh > “${fpath[1]}/_istioctl”

    #### macOS:

    istioctl completion zsh > $(brew —prefix)/share/zsh/site-functions/_istioctl

    You will need to start a new shell for this setup to take effect.

    1. istioctl completion zsh [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--no-descriptions</code></td><td></td><td>disable completion descriptions</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    istioctl dashboard

    Access to Istio web UIs

    1. istioctl dashboard [flags]
    1. istioctl dash [flags]
    2. istioctl d [flags]
    FlagsShorthandDescription
    —address <string>Address to listen on. Only accepts IP address or localhost as a value. When localhost is supplied, istioctl will try to bind on both 127.0.0.1 and ::1 and will fail if neither of these address are available to bind. (default localhost)
    —browserWhen —browser is supplied as false, istioctl dashboard will not open the browser. Default is true which means istioctl dashboard will always open a browser to view the dashboard.
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--port &lt;int&gt;</code></td><td><code>-p</code></td><td>Local port to listen to (default0)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    istioctl dashboard controlz

    Open the ControlZ web UI for a pod in the Istio control plane

    1. istioctl dashboard controlz [<type>/]<name>[.<namespace>] [flags]
    FlagsShorthandDescription
    —address <string>Address to listen on. Only accepts IP address or localhost as a value. When localhost is supplied, istioctl will try to bind on both 127.0.0.1 and ::1 and will fail if neither of these address are available to bind. (default localhost)
    —browserWhen —browser is supplied as false, istioctl dashboard will not open the browser. Default is true which means istioctl dashboard will always open a browser to view the dashboard.
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--ctrlz_port &lt;int&gt;</code></td><td></td><td>ControlZ port (default `9876`)</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nNamespace where the addon is running, if not specified, istio-system would be used (default istio-system)
    —port <int>-pLocal port to listen to (default 0)
    —selector <string>-lLabel selector (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # Open ControlZ web UI for the istiod-123-456.istio-system pod
    2. istioctl dashboard controlz istiod-123-456.istio-system
    3. # Open ControlZ web UI for the istiod-56dd66799-jfdvs pod in a custom namespace
    4. istioctl dashboard controlz istiod-123-456 -n custom-ns
    5. # Open ControlZ web UI for any Istiod pod
    6. istioctl dashboard controlz deployment/istiod.istio-system
    7. # with short syntax
    8. istioctl dash controlz pilot-123-456.istio-system
    9. istioctl d controlz pilot-123-456.istio-system

    istioctl dashboard envoy

    Open the Envoy admin dashboard for a sidecar

    1. istioctl dashboard envoy [<type>/]<name>[.<namespace>] [flags]
    FlagsShorthandDescription
    —address <string>Address to listen on. Only accepts IP address or localhost as a value. When localhost is supplied, istioctl will try to bind on both 127.0.0.1 and ::1 and will fail if neither of these address are available to bind. (default localhost)
    —browserWhen —browser is supplied as false, istioctl dashboard will not open the browser. Default is true which means istioctl dashboard will always open a browser to view the dashboard.
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nNamespace where the addon is running, if not specified, istio-system would be used (default istio-system)
    —port <int>-pLocal port to listen to (default 0)
    —selector <string>-lLabel selector (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # Open Envoy dashboard for the productpage-123-456.default pod
    2. istioctl dashboard envoy productpage-123-456.default
    3. # Open Envoy dashboard for one pod under a deployment
    4. istioctl dashboard envoy deployment/productpage-v1
    5. # with short syntax
    6. istioctl dash envoy productpage-123-456.default
    7. istioctl d envoy productpage-123-456.default

    istioctl dashboard grafana

    Open Istio’s Grafana dashboard

    1. istioctl dashboard grafana [flags]
    FlagsShorthandDescription
    —address <string>Address to listen on. Only accepts IP address or localhost as a value. When localhost is supplied, istioctl will try to bind on both 127.0.0.1 and ::1 and will fail if neither of these address are available to bind. (default localhost)
    —browserWhen —browser is supplied as false, istioctl dashboard will not open the browser. Default is true which means istioctl dashboard will always open a browser to view the dashboard.
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nNamespace where the addon is running, if not specified, istio-system would be used (default istio-system)
    —port <int>-pLocal port to listen to (default 0)
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    Examples

    1. istioctl dashboard grafana
    2. # with short syntax
    3. istioctl dash grafana
    4. istioctl d grafana

    istioctl dashboard jaeger

    Open Istio’s Jaeger dashboard

    1. istioctl dashboard jaeger [flags]
    FlagsShorthandDescription
    —address <string>Address to listen on. Only accepts IP address or localhost as a value. When localhost is supplied, istioctl will try to bind on both 127.0.0.1 and ::1 and will fail if neither of these address are available to bind. (default localhost)
    —browserWhen —browser is supplied as false, istioctl dashboard will not open the browser. Default is true which means istioctl dashboard will always open a browser to view the dashboard.
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nNamespace where the addon is running, if not specified, istio-system would be used (default istio-system)
    —port <int>-pLocal port to listen to (default 0)
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    Examples

    1. istioctl dashboard jaeger
    2. # with short syntax
    3. istioctl dash jaeger
    4. istioctl d jaeger

    istioctl dashboard kiali

    Open Istio’s Kiali dashboard

    1. istioctl dashboard kiali [flags]
    FlagsShorthandDescription
    —address <string>Address to listen on. Only accepts IP address or localhost as a value. When localhost is supplied, istioctl will try to bind on both 127.0.0.1 and ::1 and will fail if neither of these address are available to bind. (default localhost)
    —browserWhen —browser is supplied as false, istioctl dashboard will not open the browser. Default is true which means istioctl dashboard will always open a browser to view the dashboard.
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nNamespace where the addon is running, if not specified, istio-system would be used (default istio-system)
    —port <int>-pLocal port to listen to (default 0)
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    Examples

    1. istioctl dashboard kiali
    2. # with short syntax
    3. istioctl dash kiali
    4. istioctl d kiali

    istioctl dashboard prometheus

    Open Istio’s Prometheus dashboard

    1. istioctl dashboard prometheus [flags]
    FlagsShorthandDescription
    —address <string>Address to listen on. Only accepts IP address or localhost as a value. When localhost is supplied, istioctl will try to bind on both 127.0.0.1 and ::1 and will fail if neither of these address are available to bind. (default localhost)
    —browserWhen —browser is supplied as false, istioctl dashboard will not open the browser. Default is true which means istioctl dashboard will always open a browser to view the dashboard.
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nNamespace where the addon is running, if not specified, istio-system would be used (default istio-system)
    —port <int>-pLocal port to listen to (default 0)
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    Examples

    1. istioctl dashboard prometheus
    2. # with short syntax
    3. istioctl dash prometheus
    4. istioctl d prometheus

    istioctl dashboard skywalking

    Open the Istio dashboard in the SkyWalking UI

    1. istioctl dashboard skywalking [flags]
    FlagsShorthandDescription
    —address <string>Address to listen on. Only accepts IP address or localhost as a value. When localhost is supplied, istioctl will try to bind on both 127.0.0.1 and ::1 and will fail if neither of these address are available to bind. (default localhost)
    —browserWhen —browser is supplied as false, istioctl dashboard will not open the browser. Default is true which means istioctl dashboard will always open a browser to view the dashboard.
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nNamespace where the addon is running, if not specified, istio-system would be used (default istio-system)
    —port <int>-pLocal port to listen to (default 0)
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    Examples

    1. istioctl dashboard skywalking
    2. # with short syntax
    3. istioctl dash skywalking
    4. istioctl d skywalking

    istioctl dashboard zipkin

    Open Istio’s Zipkin dashboard

    1. istioctl dashboard zipkin [flags]
    FlagsShorthandDescription
    —address <string>Address to listen on. Only accepts IP address or localhost as a value. When localhost is supplied, istioctl will try to bind on both 127.0.0.1 and ::1 and will fail if neither of these address are available to bind. (default localhost)
    —browserWhen —browser is supplied as false, istioctl dashboard will not open the browser. Default is true which means istioctl dashboard will always open a browser to view the dashboard.
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nNamespace where the addon is running, if not specified, istio-system would be used (default istio-system)
    —port <int>-pLocal port to listen to (default 0)
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    Examples

    1. istioctl dashboard zipkin
    2. # with short syntax
    3. istioctl dash zipkin
    4. istioctl d zipkin

    istioctl experimental

    Experimental commands that may be modified or deprecated

    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    istioctl experimental add-to-mesh

    ‘istioctl experimental add-to-mesh’ restarts pods with an Istio sidecar or configures meshed pod access to external services. Use ‘add-to-mesh’ as an alternate to namespace-wide auto injection for troubleshooting compatibility.

    The ‘remove-from-mesh’ command can be used to restart with the sidecar removed.

    1. istioctl experimental add-to-mesh [flags]
    1. istioctl experimental add [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--injectConfigFile &lt;string&gt;</code></td><td></td><td>Injection configuration filename. Cannot be used with --injectConfigMapName (default)
    —injectConfigMapName <string>ConfigMap name for Istio sidecar injection, key should be “config”. (default istio-sidecar-injector)
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--meshConfigFile &lt;string&gt;</code></td><td></td><td>Mesh configuration filename. Takes precedence over --meshConfigMapName if set (default)
    —meshConfigMapName <string>ConfigMap name for Istio mesh configuration, key should be “mesh” (default istio)
    —namespace <string>-nConfig namespace (default )</td></tr><tr><td><code>--valuesFile &lt;string&gt;</code></td><td></td><td>Injection values configuration filename. (default)
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    Examples

    1. # Restart all productpage pods with an Istio sidecar
    2. istioctl experimental add-to-mesh service productpage
    3. # Restart just pods from the productpage-v1 deployment
    4. istioctl experimental add-to-mesh deployment productpage-v1
    5. # Restart just pods from the details-v1 deployment
    6. istioctl x add deployment details-v1
    7. # Control how meshed pods see an external service
    8. istioctl experimental add-to-mesh external-service vmhttp 172.12.23.125,172.12.23.126 \
    9. http:9080 tcp:8888 --labels app=test,version=v1 --annotations env=stage --serviceaccount stageAdmin

    istioctl experimental add-to-mesh deployment

    ‘istioctl experimental add-to-mesh deployment’ restarts pods with the Istio sidecar. Use ‘add-to-mesh’ to test deployments for compatibility with Istio. It can be used instead of namespace-wide auto-injection of sidecars and is especially helpful for compatibility testing.

    If your deployment does not function after using ‘add-to-mesh’ you must re-deploy it and troubleshoot it for Istio compatibility. See

    See also ‘istioctl experimental remove-from-mesh deployment’ which does the reverse.

    THIS COMMAND IS UNDER ACTIVE DEVELOPMENT AND NOT READY FOR PRODUCTION USE.

    1. istioctl experimental add-to-mesh deployment <deployment> [flags]
    1. istioctl experimental add-to-mesh deploy <deployment> [flags]
    2. istioctl experimental add-to-mesh dep <deployment> [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--injectConfigFile &lt;string&gt;</code></td><td></td><td>Injection configuration filename. Cannot be used with --injectConfigMapName (default)
    —injectConfigMapName <string>ConfigMap name for Istio sidecar injection, key should be “config”. (default istio-sidecar-injector)
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--meshConfigFile &lt;string&gt;</code></td><td></td><td>Mesh configuration filename. Takes precedence over --meshConfigMapName if set (default)
    —meshConfigMapName <string>ConfigMap name for Istio mesh configuration, key should be “mesh” (default istio)
    —namespace <string>-nConfig namespace (default )</td></tr><tr><td><code>--revision &lt;string&gt;</code></td><td><code>-r</code></td><td>Control plane revision (default)
    —valuesFile <string>Injection values configuration filename. (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # Restart pods from the productpage-v1 deployment with Istio sidecar
    2. istioctl experimental add-to-mesh deployment productpage-v1
    3. # Restart pods from the details-v1 deployment with Istio sidecar
    4. istioctl x add-to-mesh deploy details-v1
    5. # Restart pods from the ratings-v1 deployment with Istio sidecar
    6. istioctl x add dep ratings-v1

    istioctl experimental add-to-mesh external-service

    istioctl experimental add-to-mesh external-service create a ServiceEntry and a Service without selector for the specified external service in Istio service mesh. The typical usage scenario is Mesh Expansion on VMs.

    See also ‘istioctl experimental remove-from-mesh external-service’ which does the reverse.

    THIS COMMAND IS UNDER ACTIVE DEVELOPMENT AND NOT READY FOR PRODUCTION USE.

    1. istioctl experimental add-to-mesh external-service <svcname> <ip> [name1:]port1 [[name2:]port2] ... [flags]
    1. istioctl experimental add-to-mesh es <svcname> <ip> [name1:]port1 [[name2:]port2] ... [flags]
    FlagsShorthandDescription
    —annotations <stringSlice>-aList of string annotations to apply if creating a service/endpoint; e.g. -a foo=bar,x=y (default [])
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--injectConfigFile &lt;string&gt;</code></td><td></td><td>Injection configuration filename. Cannot be used with --injectConfigMapName (default)
    —injectConfigMapName <string>ConfigMap name for Istio sidecar injection, key should be “config”. (default istio-sidecar-injector)
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--labels &lt;stringSlice&gt;</code></td><td><code>-l</code></td><td>List of labels to apply if creating a service/endpoint; e.g. -l env=prod,vers=2 (default `[]`)</td></tr><tr><td><code>--meshConfigFile &lt;string&gt;</code></td><td></td><td>Mesh configuration filename. Takes precedence over --meshConfigMapName if set (default)
    —meshConfigMapName <string>ConfigMap name for Istio mesh configuration, key should be “mesh” (default istio)
    —namespace <string>-nConfig namespace (default )</td></tr><tr><td><code>--serviceaccount &lt;string&gt;</code></td><td><code>-s</code></td><td>Service account to link to the service (default `default`)</td></tr><tr><td><code>--valuesFile &lt;string&gt;</code></td><td></td><td>Injection values configuration filename. (default)
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    Examples

    1. # Control how meshed pods contact 172.12.23.125 and .126
    2. istioctl experimental add-to-mesh external-service vmhttp 172.12.23.125,172.12.23.126 \
    3. http:9080 tcp:8888 --labels app=test,version=v1 --annotations env=stage --serviceaccount stageAdmin

    istioctl experimental add-to-mesh service

    istioctl experimental add-to-mesh service restarts pods with the Istio sidecar. Use ‘add-to-mesh’ to test deployments for compatibility with Istio. It can be used instead of namespace-wide auto-injection of sidecars and is especially helpful for compatibility testing.

    If your service does not function after using ‘add-to-mesh’ you must re-deploy it and troubleshoot it for Istio compatibility. See https://istio.io/v1.15/docs/ops/deployment/requirements/

    See also ‘istioctl experimental remove-from-mesh service’ which does the reverse.

    THIS COMMAND IS UNDER ACTIVE DEVELOPMENT AND NOT READY FOR PRODUCTION USE.

    1. istioctl experimental add-to-mesh service <service> [flags]
    1. istioctl experimental add-to-mesh svc <service> [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--injectConfigFile &lt;string&gt;</code></td><td></td><td>Injection configuration filename. Cannot be used with --injectConfigMapName (default)
    —injectConfigMapName <string>ConfigMap name for Istio sidecar injection, key should be “config”. (default istio-sidecar-injector)
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--meshConfigFile &lt;string&gt;</code></td><td></td><td>Mesh configuration filename. Takes precedence over --meshConfigMapName if set (default)
    —meshConfigMapName <string>ConfigMap name for Istio mesh configuration, key should be “mesh” (default istio)
    —namespace <string>-nConfig namespace (default )</td></tr><tr><td><code>--revision &lt;string&gt;</code></td><td><code>-r</code></td><td>Control plane revision (default)
    —valuesFile <string>Injection values configuration filename. (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # Restart all productpage pods with an Istio sidecar
    2. istioctl experimental add-to-mesh service productpage
    3. # Restart all details-v1 pods with an Istio sidecar
    4. istioctl x add-to-mesh svc details-v1
    5. # Restart all ratings-v1 pods with an Istio sidecar
    6. istioctl x add svc ratings-v1

    istioctl experimental authz

    THIS COMMAND IS UNDER ACTIVE DEVELOPMENT AND NOT READY FOR PRODUCTION USE.

    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    istioctl experimental authz check

    Check prints the AuthorizationPolicy applied to a pod by directly checking the Envoy configuration of the pod. The command is especially useful for inspecting the policy propagation from Istiod to Envoy and the final AuthorizationPolicy list merged from multiple sources (mesh-level, namespace-level and workload-level).

    The command also supports reading from a standalone config dump file with flag -f.

    1. istioctl experimental authz check [<type>/]<name>[.<namespace>] [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--file &lt;string&gt;</code></td><td><code>-f</code></td><td>The json file with Envoy config dump to be checked (default)
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    Examples

    1. # Check AuthorizationPolicy applied to pod httpbin-88ddbcfdd-nt5jb:
    2. istioctl x authz check httpbin-88ddbcfdd-nt5jb
    3. # Check AuthorizationPolicy applied to one pod under a deployment
    4. istioctl x authz check deployment/productpage-v1
    5. # Check AuthorizationPolicy from Envoy config dump file:
    6. istioctl x authz check -f httpbin_config_dump.json

    istioctl experimental config

    Configure istioctl defaults

    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # list configuration parameters
    2. istioctl config list

    istioctl experimental config list

    List istio configurable defaults

    1. istioctl experimental config list [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    istioctl experimental create-remote-secret

    Create a secret with credentials to allow Istio to access remote Kubernetes apiservers

    1. istioctl experimental create-remote-secret [flags]
    FlagsShorthandDescription
    —auth-plugin-config <stringToString>Authenticator plug-in configuration. —auth-type=plugin must be set with this option (default [])
    —auth-plugin-name <string>Authenticator plug-in name. —auth-type=plugin must be set with this option (default )</td></tr><tr><td><code>--auth-type &lt;RemoteSecretAuthType&gt;</code></td><td></td><td>Type of authentication to use. supported values = [bearer-token plugin] (default `bearer-token`)</td></tr><tr><td><code>--context &lt;string&gt;</code></td><td></td><td>The name of the kubeconfig context to use (default)
    —create-service-accountIf true, the service account needed for creating the remote secret will be created if it doesn’t exist.
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--manifests &lt;string&gt;</code></td><td><code>-d</code></td><td>Specify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.15.0/manifests) or release tar URL (e.g. https://github.com/istio/istio/releases/download/1.15.0/istio-1.15.0-linux-amd64.tar.gz). (default)
    —name <string>Name of the local cluster whose credentials are stored in the secret. If a name is not specified the kube-system namespace’s UUID of the local cluster will be used. (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —secret-name <string>The name of the specific secret to use from the service-account. Needed when there are multiple secrets in the service account. (default )</td></tr><tr><td><code>--server &lt;string&gt;</code></td><td></td><td>The address and port of the Kubernetes API server. (default)
    —service-account <string>Create a secret with this service account’s credentials. Default value is “istio-reader-service-account” if —type is “remote”, “istiod” if —type is “config”. (default `)</td></tr><tr><td><code>--type &lt;SecretType&gt;</code></td><td></td><td>Type of the generated secret. supported values = [remote config] (defaultremote)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # Create a secret to access cluster c0's apiserver and install it in cluster c1.
    2. istioctl --kubeconfig=c0.yaml x create-remote-secret --name c0 \
    3. | kubectl --kubeconfig=c1.yaml apply -f -
    4. # Delete a secret that was previously installed in c1
    5. istioctl --kubeconfig=c0.yaml x create-remote-secret --name c0 \
    6. | kubectl --kubeconfig=c1.yaml delete -f -
    7. # Create a secret access a remote cluster with an auth plugin
    8. istioctl --kubeconfig=c0.yaml x create-remote-secret --name c0 --auth-type=plugin --auth-plugin-name=gcp \
    9. | kubectl --kubeconfig=c1.yaml apply -f -

    istioctl experimental describe

    Describe resource and related Istio configuration

    1. istioctl experimental describe [flags]
    1. istioctl experimental des [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    istioctl experimental describe pod

    Analyzes pod, its Services, DestinationRules, and VirtualServices and reports the configuration objects that affect that pod.

    THIS COMMAND IS UNDER ACTIVE DEVELOPMENT AND NOT READY FOR PRODUCTION USE.

    1. istioctl experimental describe pod <pod> [flags]
    1. istioctl experimental describe po <pod> [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--ignoreUnmeshed</code></td><td></td><td>Suppress warnings for unmeshed pods</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. istioctl experimental describe pod productpage-v1-c7765c886-7zzd4

    istioctl experimental describe service

    Analyzes service, pods, DestinationRules, and VirtualServices and reports the configuration objects that affect that service.

    THIS COMMAND IS UNDER ACTIVE DEVELOPMENT AND NOT READY FOR PRODUCTION USE.

    1. istioctl experimental describe service <svc> [flags]
    1. istioctl experimental describe svc <svc> [flags]

    Examples

    1. istioctl experimental describe service productpage

    Retrieve Envoy emitted metrics for the specified pod.

    1. istioctl experimental envoy-stats [<type>/]<name>[.<namespace>] [flags]
    1. istioctl experimental es [<type>/]<name>[.<namespace>] [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--output &lt;string&gt;</code></td><td><code>-o</code></td><td>Output format: one of json|yaml|prom (defaultshort)</td></tr><tr><td><code>--type &lt;string&gt;</code></td><td><code>-t</code></td><td>Where to grab the stats: one of server|clusters (defaultserver)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # Retrieve Envoy emitted metrics for the specified pod.
    2. istioctl experimental envoy-stats <pod-name[.namespace]>
    3. # Retrieve Envoy server metrics in prometheus format
    4. istioctl experimental envoy-stats <pod-name[.namespace]> --output prom
    5. # Retrieve Envoy server metrics in prometheus format with merged application metrics
    6. istioctl experimental envoy-stats <pod-name[.namespace]> --output prom-merged
    7. # Retrieve Envoy cluster metrics
    8. istioctl experimental envoy-stats <pod-name[.namespace]> --type clusters

    istioctl experimental injector

    List sidecar injector and sidecar versions

    1. istioctl experimental injector [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    istioctl experimental injector list

    List sidecar injector and sidecar versions

    1. istioctl experimental injector list [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. istioctl experimental injector list

    istioctl experimental internal-debug

    Retrieves the debug information from Istiod or Pods in the mesh using the service account from the pod if —cert-dir is empty. By default it will use the default serviceAccount from (istio-system) namespace if the pod is not specified.

    THIS COMMAND IS UNDER ACTIVE DEVELOPMENT AND NOT READY FOR PRODUCTION USE.

    1. istioctl experimental internal-debug [<type>/]<name>[.<namespace>] [flags]
    FlagsShorthandDescription
    —allSend the same request to all instances of Istiod. Only applicable for in-cluster deployment.
    —authority <string>XDS Subject Alternative Name (for example istiod.istio-system.svc) (default )</td></tr><tr><td><code>--cert-dir &lt;string&gt;</code></td><td></td><td>XDS Endpoint certificate directory (default)
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--insecure</code></td><td></td><td>Skip server certificate and domain verification. (NOT SECURE!)</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default )</td></tr><tr><td><code>--plaintext</code></td><td></td><td>Use plain-text HTTP/2 when connecting to server (no TLS).</td></tr><tr><td><code>--revision &lt;string&gt;</code></td><td><code>-r</code></td><td>Control plane revision (default)
    —timeout <duration>The duration to wait before failing (default 30s)
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)
    —xds-address <string>XDS Endpoint (default )</td></tr><tr><td><code>--xds-label &lt;string&gt;</code></td><td></td><td>Istiod pod label selector (default)
    —xds-port <int>Istiod pod port (default 15012)
    1. # Retrieve sync status for all Envoys in a mesh
    2. istioctl x internal-debug syncz
    3. # Retrieve sync diff for a single Envoy and Istiod
    4. istioctl x internal-debug syncz istio-egressgateway-59585c5b9c-ndc59.istio-system
    5. # SECURITY OPTIONS
    6. # Retrieve syncz debug information directly from the control plane, using token security
    7. # (This is the usual way to get the debug information with an out-of-cluster control plane.)
    8. istioctl x internal-debug syncz --xds-address istio.cloudprovider.example.com:15012
    9. # Retrieve syncz debug information via Kubernetes config, using token security
    10. # (This is the usual way to get the debug information with an in-cluster control plane.)
    11. istioctl x internal-debug syncz
    12. # Retrieve syncz debug information directly from the control plane, using RSA certificate security
    13. # (Certificates must be obtained before this step. The --cert-dir flag lets istioctl bypass the Kubernetes API server.)
    14. istioctl x internal-debug syncz --xds-address istio.example.com:15012 --cert-dir ~/.istio-certs
    15. # Retrieve syncz information via XDS from specific control plane in multi-control plane in-cluster configuration
    16. # (Select a specific control plane in an in-cluster canary Istio configuration.)
    17. istioctl x internal-debug syncz --xds-label istio.io/rev=default

    istioctl experimental kube-uninject

    kube-uninject is used to prevent Istio from adding a sidecar and also provides the inverse of “istioctl kube-inject -f”.

    1. istioctl experimental kube-uninject [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--filename &lt;string&gt;</code></td><td><code>-f</code></td><td>Input Kubernetes resource filename (default)
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —output <string>-oModified output Kubernetes resource filename (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # Update resources before applying.
    2. kubectl apply -f <(istioctl experimental kube-uninject -f <resource.yaml>)
    3. # Create a persistent version of the deployment by removing Envoy sidecar.
    4. istioctl experimental kube-uninject -f deployment.yaml -o deployment-uninjected.yaml
    5. # Update an existing deployment.
    6. kubectl get deployment -o yaml | istioctl experimental kube-uninject -f - | kubectl apply -f -

    istioctl experimental metrics

    Prints the metrics for the specified service(s) when running in Kubernetes.

    This command finds a Prometheus pod running in the specified istio system namespace. It then executes a series of queries per requested workload to find the following top-level workload metrics: total requests per second, error rate, and request latency at p50, p90, and p99 percentiles. The query results are printed to the console, organized by workload name.

    All metrics returned are from server-side reports. This means that latencies and error rates are from the perspective of the service itself and not of an individual client (or aggregate set of clients). Rates and latencies are calculated over a time interval of 1 minute.

    1. istioctl experimental metrics <workload name>...
    1. istioctl experimental m <workload name>...
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--duration &lt;duration&gt;</code></td><td><code>-d</code></td><td>Duration of query metrics, default value is 1m. (default `1m0s`)</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # Retrieve workload metrics for productpage-v1 workload
    2. istioctl experimental metrics productpage-v1
    3. # Retrieve workload metrics for various services with custom duration
    4. istioctl experimental metrics productpage-v1 -d 2m
    5. # Retrieve workload metrics for various services in the different namespaces
    6. istioctl experimental metrics productpage-v1.foo reviews-v1.bar ratings-v1.baz

    istioctl experimental precheck

    precheck inspects a Kubernetes cluster for Istio install and upgrade requirements.

    1. istioctl experimental precheck [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default )</td></tr><tr><td><code>--revision &lt;string&gt;</code></td><td><code>-r</code></td><td>Control plane revision (default)
    —skip-controlplaneskip checking the control plane
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    Examples

    1. # Verify that Istio can be installed or upgraded
    2. istioctl x precheck
    3. # Check only a single namespace
    4. istioctl x precheck --namespace default

    istioctl experimental proxy-status

    Retrieves last sent and last acknowledged xDS sync from Istiod to each Envoy in the mesh

    1. istioctl experimental proxy-status [<type>/]<name>[.<namespace>] [flags]
    1. istioctl experimental ps [<type>/]<name>[.<namespace>] [flags]
    FlagsShorthandDescription
    —authority <string>XDS Subject Alternative Name (for example istiod.istio-system.svc) (default )</td></tr><tr><td><code>--cert-dir &lt;string&gt;</code></td><td></td><td>XDS Endpoint certificate directory (default)
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--file &lt;string&gt;</code></td><td><code>-f</code></td><td>Envoy config dump JSON file (default)
    —insecureSkip server certificate and domain verification. (NOT SECURE!)
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —plaintextUse plain-text HTTP/2 when connecting to server (no TLS).
    —revision <string>-rControl plane revision (default )</td></tr><tr><td><code>--timeout &lt;duration&gt;</code></td><td></td><td>The duration to wait before failing (default `30s`)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`)</td></tr><tr><td><code>--xds-address &lt;string&gt;</code></td><td></td><td>XDS Endpoint (default)
    —xds-label <string>Istiod pod label selector (default `)</td></tr><tr><td><code>--xds-port &lt;int&gt;</code></td><td></td><td>Istiod pod port (default15012`)

    Examples

    1. # Retrieve sync status for all Envoys in a mesh
    2. istioctl x proxy-status
    3. # Retrieve sync diff for a single Envoy and Istiod
    4. istioctl x proxy-status istio-egressgateway-59585c5b9c-ndc59.istio-system
    5. # SECURITY OPTIONS
    6. # Retrieve proxy status information directly from the control plane, using token security
    7. # (This is the usual way to get the proxy-status with an out-of-cluster control plane.)
    8. istioctl x ps --xds-address istio.cloudprovider.example.com:15012
    9. # Retrieve proxy status information via Kubernetes config, using token security
    10. # (This is the usual way to get the proxy-status with an in-cluster control plane.)
    11. istioctl x proxy-status
    12. # Retrieve proxy status information directly from the control plane, using RSA certificate security
    13. # (Certificates must be obtained before this step. The --cert-dir flag lets istioctl bypass the Kubernetes API server.)
    14. istioctl x ps --xds-address istio.example.com:15012 --cert-dir ~/.istio-certs
    15. # Retrieve proxy status information via XDS from specific control plane in multi-control plane in-cluster configuration
    16. # (Select a specific control plane in an in-cluster canary Istio configuration.)
    17. istioctl x ps --xds-label istio.io/rev=default

    istioctl experimental remote-clusters

    Lists the remote clusters each istiod instance is connected to.

    1. istioctl experimental remote-clusters [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default )</td></tr><tr><td><code>--revision &lt;string&gt;</code></td><td><code>-r</code></td><td>Control plane revision (default)
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    istioctl experimental remove-from-mesh

    ‘istioctl experimental remove-from-mesh’ restarts pods without an Istio sidecar or removes external service access configuration. Use ‘remove-from-mesh’ to quickly test uninjected behavior as part of compatibility troubleshooting. The ‘add-to-mesh’ command can be used to add or restore the sidecar.

    THIS COMMAND IS UNDER ACTIVE DEVELOPMENT AND NOT READY FOR PRODUCTION USE.

    1. istioctl experimental remove-from-mesh [flags]
    1. istioctl experimental rm [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # Restart all productpage pods without an Istio sidecar
    2. istioctl experimental remove-from-mesh service productpage
    3. # Restart all details-v1 pods without an Istio sidecar
    4. istioctl x rm service details-v1
    5. # Restart all ratings-v1 pods without an Istio sidecar
    6. istioctl x rm deploy ratings-v1

    istioctl experimental remove-from-mesh deployment

    ‘istioctl experimental remove-from-mesh deployment’ restarts pods with the Istio sidecar un-injected. ‘remove-from-mesh’ is a compatibility troubleshooting tool.

    THIS COMMAND IS UNDER ACTIVE DEVELOPMENT AND NOT READY FOR PRODUCTION USE.

    1. istioctl experimental remove-from-mesh deployment <deployment> [flags]
    1. istioctl experimental remove-from-mesh deploy <deployment> [flags]
    2. istioctl experimental remove-from-mesh dep <deployment> [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>Config namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # Restart all productpage-v1 pods without an Istio sidecar
    2. istioctl experimental remove-from-mesh deployment productpage-v1
    3. # Restart all details-v1 pods without an Istio sidecar
    4. istioctl x remove-from-mesh deploy details-v1
    5. # Restart all ratings-v1 pods without an Istio sidecar
    6. istioctl x rm dep ratings-v1

    istioctl experimental remove-from-mesh external-service

    ‘istioctl experimental remove-from-mesh external-service’ removes the ServiceEntry and the Kubernetes Service for the specified external service (e.g. services running on a VM) from Istio service mesh. The typical usage scenario is Mesh Expansion on VMs.

    THIS COMMAND IS UNDER ACTIVE DEVELOPMENT AND NOT READY FOR PRODUCTION USE.

    1. istioctl experimental remove-from-mesh external-service <svcname> [flags]
    1. istioctl experimental remove-from-mesh es <svcname> [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # Remove "vmhttp" service entry rules
    2. istioctl experimental remove-from-mesh external-service vmhttp
    3. # Remove "vmhttp" service entry rules
    4. istioctl x remove-from-mesh es vmhttp
    5. # Remove "vmhttp" service entry rules
    6. istioctl x rm es vmhttp

    istioctl experimental remove-from-mesh service

    ‘istioctl experimental remove-from-mesh service’ restarts pods with the Istio sidecar un-injected. ‘remove-from-mesh’ is a compatibility troubleshooting tool.

    THIS COMMAND IS UNDER ACTIVE DEVELOPMENT AND NOT READY FOR PRODUCTION USE.

    1. istioctl experimental remove-from-mesh service <service> [flags]
    1. istioctl experimental remove-from-mesh svc <service> [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # Restart all productpage pods without an Istio sidecar
    2. istioctl experimental remove-from-mesh service productpage
    3. # Restart all details-v1 pods without an Istio sidecar
    4. istioctl x remove-from-mesh svc details-v1
    5. # Restart all ratings-v1 pods without an Istio sidecar
    6. istioctl x rm svc ratings-v1

    istioctl experimental revision

    The revision command provides a revision centric view of istio deployments. It provides insight into IstioOperator CRs defining the revision, istiod and gateway pods which are part of deployment of a particular revision.

    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —manifests <string>-dSpecify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.15.0/manifests) or release tar URL (e.g. ). (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —output <string>-oOutput format for revision description (available formats: table,json) (default table)
    —verbose-vEnable verbose output
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    istioctl experimental revision describe

    Show information about a revision, including customizations, istiod version and which pods/gateways are using it.

    1. istioctl experimental revision describe [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —manifests <string>-dSpecify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.15.0/manifests) or release tar URL (e.g. ). (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —output <string>-oOutput format for revision description (available formats: table,json) (default table)
    —verbose-vEnable verbose output
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    Examples

    1. # View the details of a revision named 'canary'
    2. istioctl x revision describe canary
    3. # View the details of a revision named 'canary' and also the pods
    4. # under that particular revision
    5. istioctl x revision describe canary -v
    6. # Get details about a revision in json format (default format is human-friendly table format)
    7. istioctl x revision describe canary -v -o json

    istioctl experimental revision list

    Show list of control plane and gateway revisions that are currently installed in cluster

    1. istioctl experimental revision list [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —manifests <string>-dSpecify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.15.0/manifests) or release tar URL (e.g. https://github.com/istio/istio/releases/download/1.15.0/istio-1.15.0-linux-amd64.tar.gz). (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —output <string>-oOutput format for revision description (available formats: table,json) (default table)
    —verbose-vEnable verbose output
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    Examples

    1. # View summary of revisions installed in the current cluster
    2. # which can be overridden with --context parameter.
    3. istioctl x revision list
    4. # View list of revisions including customizations, istiod and gateway pods
    5. istioctl x revision list -v

    istioctl experimental revision tag

    Command group used to interact with revision tags. Revision tags allow for the creation of mutable aliases referring to control plane revisions for sidecar injection.

    With revision tags, rather than relabeling a namespace from “istio.io/rev=revision-a” to “istio.io/rev=revision-b” to change which control plane revision handles injection, it’s possible to create a revision tag “prod” and label our namespace “istio.io/rev=prod”. The “prod” revision tag could point to “1-7-6” initially and then be changed to point to “1-8-1” at some later point.

    This allows operators to change which Istio control plane revision should handle injection for a namespace or set of namespaces without manual relabeling of the “istio.io/rev” tag.

    1. istioctl experimental revision tag [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —manifests <string>-dSpecify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.15.0/manifests) or release tar URL (e.g. ). (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —output <string>-oOutput format for revision description (available formats: table,json) (default table)
    —verbose-vEnable verbose output
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    istioctl experimental revision tag generate

    Create a revision tag and output to the command’s stdout. Tag an Istio control plane revision for use with namespace istio.io/rev injection labels.

    1. istioctl experimental revision tag generate <revision-tag> [flags]
    FlagsShorthandDescription
    —auto-inject-namespacesIf set to true, the sidecars should be automatically injected into all namespaces by default
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —manifests <string>-dSpecify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.15.0/manifests) or release tar URL (e.g. ). (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —output <string>-oOutput format for revision description (available formats: table,json) (default table)
    —overwriteIf true, allow revision tags to be overwritten, otherwise reject revision tag updates that overwrite existing revision tags.
    —revision <string>-rControl plane revision to reference from a given revision tag (default )</td></tr><tr><td><code>--skip-confirmation</code></td><td><code>-y</code></td><td>The skipConfirmation determines whether the user is prompted for confirmation. If set to true, the user is not prompted and a Yes response is assumed in all cases.</td></tr><tr><td><code>--verbose</code></td><td><code>-v</code></td><td>Enable verbose output</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`)</td></tr><tr><td><code>--webhook-name &lt;string&gt;</code></td><td></td><td>Name to use for a revision tag's mutating webhook configuration. (default)

    Examples

    1. # Create a revision tag from the "1-8-0" revision
    2. istioctl tag generate prod --revision 1-8-0 > tag.yaml
    3. # Apply the tag to cluster
    4. kubectl apply -f tag.yaml
    5. # Point namespace "test-ns" at the revision pointed to by the "prod" revision tag
    6. kubectl label ns test-ns istio.io/rev=prod
    7. # Rollout namespace "test-ns" to update workloads to the "1-8-0" revision
    8. kubectl rollout restart deployments -n test-ns

    istioctl experimental revision tag list

    List existing revision tags

    1. istioctl experimental revision tag list [flags]
    1. istioctl experimental revision tag show [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —manifests <string>-dSpecify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.15.0/manifests) or release tar URL (e.g. https://github.com/istio/istio/releases/download/1.15.0/istio-1.15.0-linux-amd64.tar.gz). (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —output <string>-oOutput format for revision description (available formats: table,json) (default table)
    —verbose-vEnable verbose output
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    Examples

    1. istioctl tag list

    istioctl experimental revision tag remove

    Remove Istio control plane revision tag.

    Removing a revision tag should be done with care. Removing a revision tag will disrupt sidecar injection in namespaces that reference the tag in an “istio.io/rev” label. Verify that there are no remaining namespaces referencing a revision tag before removing using the “istioctl tag list” command.

    1. istioctl experimental revision tag remove <revision-tag> [flags]
    1. istioctl experimental revision tag delete <revision-tag> [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —manifests <string>-dSpecify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.15.0/manifests) or release tar URL (e.g. ). (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —output <string>-oOutput format for revision description (available formats: table,json) (default table)
    —skip-confirmation-yThe skipConfirmation determines whether the user is prompted for confirmation. If set to true, the user is not prompted and a Yes response is assumed in all cases.
    —verbose-vEnable verbose output
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    Examples

    1. # Remove the revision tag "prod"
    2. istioctl tag remove prod

    istioctl experimental revision tag set

    1. istioctl experimental revision tag set <revision-tag> [flags]
    FlagsShorthandDescription
    —auto-inject-namespacesIf set to true, the sidecars should be automatically injected into all namespaces by default
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —manifests <string>-dSpecify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.15.0/manifests) or release tar URL (e.g. https://github.com/istio/istio/releases/download/1.15.0/istio-1.15.0-linux-amd64.tar.gz). (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —output <string>-oOutput format for revision description (available formats: table,json) (default table)
    —overwriteIf true, allow revision tags to be overwritten, otherwise reject revision tag updates that overwrite existing revision tags.
    —revision <string>-rControl plane revision to reference from a given revision tag (default )</td></tr><tr><td><code>--skip-confirmation</code></td><td><code>-y</code></td><td>The skipConfirmation determines whether the user is prompted for confirmation. If set to true, the user is not prompted and a Yes response is assumed in all cases.</td></tr><tr><td><code>--verbose</code></td><td><code>-v</code></td><td>Enable verbose output</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`)</td></tr><tr><td><code>--webhook-name &lt;string&gt;</code></td><td></td><td>Name to use for a revision tag's mutating webhook configuration. (default)

    Examples

    1. # Create a revision tag from the "1-8-0" revision
    2. istioctl tag set prod --revision 1-8-0
    3. # Point namespace "test-ns" at the revision pointed to by the "prod" revision tag
    4. kubectl label ns test-ns istio.io/rev=prod
    5. # Change the revision tag to reference the "1-8-1" revision
    6. istioctl tag set prod --revision 1-8-1 --overwrite
    7. # Make revision "1-8-1" the default revision, both resulting in that revision handling injection for "istio-injection=enabled"
    8. # and validating resources cluster-wide
    9. istioctl tag set default --revision 1-8-1
    10. # Rollout namespace "test-ns" to update workloads to the "1-8-1" revision
    11. kubectl rollout restart deployments -n test-ns

    istioctl experimental uninstall

    The uninstall command uninstalls Istio from a cluster

    1. istioctl experimental uninstall [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--dry-run</code></td><td></td><td>Console/log output only, make no changes.</td></tr><tr><td><code>--filename &lt;string&gt;</code></td><td><code>-f</code></td><td>The filename of the IstioOperator CR. (default)
    —forceProceed even with validation errors.
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--manifests &lt;string&gt;</code></td><td><code>-d</code></td><td>Specify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.15.0/manifests) or release tar URL (e.g. https://github.com/istio/istio/releases/download/1.15.0/istio-1.15.0-linux-amd64.tar.gz). (default)
    —namespace <string>-nConfig namespace (default )</td></tr><tr><td><code>--purge</code></td><td></td><td>Delete all Istio related sources for all versions</td></tr><tr><td><code>--revision &lt;string&gt;</code></td><td><code>-r</code></td><td>Target control plane revision for the command. (default)
    —set <stringArray>-sOverride an IstioOperator value, e.g. to choose a profile (—set profile=demo), enable or disable components (—set components.cni.enabled=true), or override Istio settings (—set meshConfig.enableTracing=true). See documentation for more info: (default [])
    —skip-confirmation-yThe skipConfirmation determines whether the user is prompted for confirmation. If set to true, the user is not prompted and a Yes response is assumed in all cases.
    —verbose-vVerbose output.
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    Examples

    1. # Uninstall a single control plane by revision
    2. istioctl uninstall --revision foo
    3. # Uninstall a single control plane by iop file
    4. istioctl uninstall -f iop.yaml
    5. # Uninstall all control planes and shared resources
    6. istioctl uninstall --purge

    istioctl experimental version

    Prints out build version information

    1. istioctl experimental version [flags]
    FlagsShorthandDescription
    —authority <string>XDS Subject Alternative Name (for example istiod.istio-system.svc) (default )</td></tr><tr><td><code>--cert-dir &lt;string&gt;</code></td><td></td><td>XDS Endpoint certificate directory (default)
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--insecure</code></td><td></td><td>Skip server certificate and domain verification. (NOT SECURE!)</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default )</td></tr><tr><td><code>--output &lt;string&gt;</code></td><td><code>-o</code></td><td>One of 'yaml' or 'json'. (default)
    —plaintextUse plain-text HTTP/2 when connecting to server (no TLS).
    —remoteUse —remote=false to suppress control plane check
    —revision <string>-rControl plane revision (default )</td></tr><tr><td><code>--short</code></td><td><code>-s</code></td><td>Use --short=false to generate full version information</td></tr><tr><td><code>--timeout &lt;duration&gt;</code></td><td></td><td>The duration to wait before failing (default `30s`)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`)</td></tr><tr><td><code>--xds-address &lt;string&gt;</code></td><td></td><td>XDS Endpoint (default)
    —xds-label <string>Istiod pod label selector (default `)</td></tr><tr><td><code>--xds-port &lt;int&gt;</code></td><td></td><td>Istiod pod port (default15012`)

    Examples

    1. # Retrieve version information directly from the control plane, using token security
    2. # (This is the usual way to get the control plane version with an out-of-cluster control plane.)
    3. istioctl x version --xds-address istio.cloudprovider.example.com:15012
    4. # Retrieve version information via Kubernetes config, using token security
    5. # (This is the usual way to get the control plane version with an in-cluster control plane.)
    6. istioctl x version
    7. # Retrieve version information directly from the control plane, using RSA certificate security
    8. # (Certificates must be obtained before this step. The --cert-dir flag lets istioctl bypass the Kubernetes API server.)
    9. istioctl x version --xds-address istio.example.com:15012 --cert-dir ~/.istio-certs
    10. # Retrieve version information via XDS from specific control plane in multi-control plane in-cluster configuration
    11. # (Select a specific control plane in an in-cluster canary Istio configuration.)
    12. istioctl x version --xds-label istio.io/rev=default

    istioctl experimental wait

    Waits for the specified condition to be true of an Istio resource.

    1. istioctl experimental wait [flags] <type> <name>[.<namespace>]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--for &lt;string&gt;</code></td><td></td><td>Wait condition, must be 'distribution' or 'delete' (default `distribution`)</td></tr><tr><td><code>--generation &lt;string&gt;</code></td><td></td><td>Wait for a specific generation of config to become current, rather than using whatever is latest in Kubernetes (default)
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —revision <string>-rControl plane revision (default `)</td></tr><tr><td><code>--threshold &lt;float32&gt;</code></td><td></td><td>The ratio of distribution required for success (default1)</td></tr><tr><td><code>--timeout &lt;duration&gt;</code></td><td></td><td>The duration to wait before failing (default30s)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # Wait until the bookinfo virtual service has been distributed to all proxies in the mesh
    2. istioctl experimental wait --for=distribution virtualservice bookinfo.default
    3. # Wait until 99% of the proxies receive the distribution, timing out after 5 minutes
    4. istioctl experimental wait --for=distribution --threshold=.99 --timeout=300s virtualservice bookinfo.default

    istioctl experimental workload

    Commands to assist in configuring and deploying workloads running on VMs and other non-Kubernetes environments

    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # workload group yaml generation
    2. workload group create
    3. # workload entry configuration generation

    istioctl experimental workload entry

    Commands dealing with WorkloadEntry resources

    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. entry configure -f workloadgroup.yaml -o outputDir

    istioctl experimental workload entry configure

    Generates all the required configuration files for workload instance on a VM or non-Kubernetes environment from a WorkloadGroup artifact. This includes a MeshConfig resource, the cluster.env file, and necessary certificates and security tokens. Configure requires either the WorkloadGroup artifact path or its location on the API server.

    1. istioctl experimental workload entry configure [flags]
    FlagsShorthandDescription
    —autoregisterCreates a WorkloadEntry upon connection to istiod (if enabled in pilot).
    —capture-dnsEnables the capture of outgoing DNS packets on port 53, redirecting to istio-agent
    —clusterID <string>The ID used to identify the cluster (default )</td></tr><tr><td><code>--context &lt;string&gt;</code></td><td></td><td>The name of the kubeconfig context to use (default)
    —externalIP <string>External IP address of the workload (default )</td></tr><tr><td><code>--file &lt;string&gt;</code></td><td><code>-f</code></td><td>filename of the WorkloadGroup artifact. Leave this field empty if using the API server (default)
    —ingressIP <string>IP address of the ingress gateway (default )</td></tr><tr><td><code>--ingressService &lt;string&gt;</code></td><td></td><td>Name of the Service to be used as the ingress gateway, in the format &lt;service&gt;.&lt;namespace&gt;. If no namespace is provided, the default istio-system namespace will be used. (default `istio-eastwestgateway`)</td></tr><tr><td><code>--internalIP &lt;string&gt;</code></td><td></td><td>Internal IP address of the workload (default)
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--name &lt;string&gt;</code></td><td></td><td>The name of the workload group (default)
    —namespace <string>-nConfig namespace (default )</td></tr><tr><td><code>--output &lt;string&gt;</code></td><td><code>-o</code></td><td>Output directory for generated files (default)
    —revision <string>-rControl plane revision (default `)</td></tr><tr><td><code>--tokenDuration &lt;int&gt;</code></td><td></td><td>The token duration in seconds (default: 1 hour) (default3600)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # configure example using a local WorkloadGroup artifact
    2. configure -f workloadgroup.yaml -o config
    3. # configure example using the API server
    4. configure --name foo --namespace bar -o config

    istioctl experimental workload group

    Commands dealing with WorkloadGroup resources

    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. group create --name foo --namespace bar --labels app=foobar

    istioctl experimental workload group create

    Creates a WorkloadGroup resource that provides a template for associated WorkloadEntries. The default output is serialized YAML, which can be piped into ‘kubectl apply -f -‘ to send the artifact to the API Server.

    1. istioctl experimental workload group create [flags]
    FlagsShorthandDescription
    —annotations <stringSlice>-aThe annotations to apply to the workload instances (default [])
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —labels <stringSlice>-lThe labels to apply to the workload instances; e.g. -l env=prod,vers=2 (default [])
    —name <string>The name of the workload group (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —ports <stringSlice>-pThe incoming ports exposed by the workload instance (default [])
    —serviceAccount <string>-sThe service identity to associate with the workload instances (default default)
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    Examples

    1. create --name foo --namespace bar --labels app=foo,bar=baz --ports grpc=3550,http=8080 --annotations annotation=foobar --serviceAccount sa

    istioctl install

    The install command generates an Istio install manifest and applies it to a cluster.

    1. istioctl install [flags]
    1. istioctl apply [flags]
    FlagsShorthandDescription
    —charts <string>Deprecated, use —manifests instead. (default )</td></tr><tr><td><code>--context &lt;string&gt;</code></td><td></td><td>The name of the kubeconfig context to use (default)
    —dry-runConsole/log output only, make no changes.
    —filename <stringSlice>-fPath to file containing IstioOperator custom resource This flag can be specified multiple times to overlay multiple files. Multiple files are overlaid in left to right order. (default [])
    —forceProceed even with validation errors.
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--manifests &lt;string&gt;</code></td><td><code>-d</code></td><td>Specify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.15.0/manifests) or release tar URL (e.g. https://github.com/istio/istio/releases/download/1.15.0/istio-1.15.0-linux-amd64.tar.gz). (default)
    —namespace <string>-nConfig namespace (default )</td></tr><tr><td><code>--readiness-timeout &lt;duration&gt;</code></td><td></td><td>Maximum time to wait for Istio resources in each component to be ready. (default `5m0s`)</td></tr><tr><td><code>--revision &lt;string&gt;</code></td><td><code>-r</code></td><td>Target control plane revision for the command. (default)
    —set <stringArray>-sOverride an IstioOperator value, e.g. to choose a profile (—set profile=demo), enable or disable components (—set components.cni.enabled=true), or override Istio settings (—set meshConfig.enableTracing=true). See documentation for more info:https://istio.io/v1.15/docs/reference/config/istio.operator.v1alpha1/#IstioOperatorSpec (default [])
    —skip-confirmation-yThe skipConfirmation determines whether the user is prompted for confirmation. If set to true, the user is not prompted and a Yes response is assumed in all cases.
    —verifyVerify the Istio control plane after installation/in-place upgrade
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)
    1. # Apply a default Istio installation
    2. istioctl install
    3. # Enable Tracing
    4. istioctl install --set meshConfig.enableTracing=true
    5. # Generate the demo profile and don't wait for confirmation
    6. istioctl install --set profile=demo --skip-confirmation
    7. # To override a setting that includes dots, escape them with a backslash (\). Your shell may require enclosing quotes.
    8. istioctl install --set "values.sidecarInjectorWebhook.injectedAnnotations.container\.apparmor\.security\.beta\.kubernetes\.io/istio-proxy=runtime/default"
    9. # For setting boolean-string option, it should be enclosed quotes and escaped with a backslash (\).
    10. istioctl install --set meshConfig.defaultConfig.proxyMetadata.PROXY_XDS_VIA_AGENT=\"false\"

    istioctl kube-inject

    kube-inject manually injects the Istio sidecar into Kubernetes workloads. Unsupported resources are left unmodified so it is safe to run kube-inject over a single file that contains multiple Service, ConfigMap, Deployment, etc. definitions for a complex application. When in doubt re-run istioctl kube-inject on deployments to get the most up-to-date changes.

    It’s best to do kube-inject when the resource is initially created.

    1. istioctl kube-inject [flags]
    FlagsShorthandDescription
    —authority <string>XDS Subject Alternative Name (for example istiod.istio-system.svc) (default )</td></tr><tr><td><code>--cert-dir &lt;string&gt;</code></td><td></td><td>XDS Endpoint certificate directory (default)
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--filename &lt;string&gt;</code></td><td><code>-f</code></td><td>Input Kubernetes resource filename (default)
    —injectConfigFile <string>Injection configuration filename. Cannot be used with —injectConfigMapName (default )</td></tr><tr><td><code>--insecure</code></td><td></td><td>Skip server certificate and domain verification. (NOT SECURE!)</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —meshConfigFile <string>Mesh configuration filename. Takes precedence over —meshConfigMapName if set (default )</td></tr><tr><td><code>--meshConfigMapName &lt;string&gt;</code></td><td></td><td>ConfigMap name for Istio mesh configuration, key should be "mesh" (default `istio`)</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —operatorFileName <string>Path to file containing IstioOperator custom resources. If configs from files like meshConfigFile, valuesFile are provided, they will be overridden by iop config values. (default )</td></tr><tr><td><code>--output &lt;string&gt;</code></td><td><code>-o</code></td><td>Modified output Kubernetes resource filename (default)
    —plaintextUse plain-text HTTP/2 when connecting to server (no TLS).
    —revision <string>-rControl plane revision (default )</td></tr><tr><td><code>--timeout &lt;duration&gt;</code></td><td></td><td>The duration to wait before failing (default `30s`)</td></tr><tr><td><code>--valuesFile &lt;string&gt;</code></td><td></td><td>Injection values configuration filename. (default)
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)
    —webhookConfig <string>MutatingWebhookConfiguration name for Istio (default istio-sidecar-injector)
    —xds-address <string>XDS Endpoint (default )</td></tr><tr><td><code>--xds-label &lt;string&gt;</code></td><td></td><td>Istiod pod label selector (default)
    —xds-port <int>Istiod pod port (default 15012)

    Examples

    1. # Update resources on the fly before applying.
    2. kubectl apply -f <(istioctl kube-inject -f <resource.yaml>)
    3. # Create a persistent version of the deployment with Istio sidecar injected.
    4. istioctl kube-inject -f deployment.yaml -o deployment-injected.yaml
    5. # Update an existing deployment.
    6. kubectl get deployment -o yaml | istioctl kube-inject -f - | kubectl apply -f -
    7. # Capture cluster configuration for later use with kube-inject
    8. kubectl -n istio-system get cm istio-sidecar-injector -o jsonpath="{.data.config}" > /tmp/inj-template.tmpl
    9. kubectl -n istio-system get cm istio -o jsonpath="{.data.mesh}" > /tmp/mesh.yaml
    10. kubectl -n istio-system get cm istio-sidecar-injector -o jsonpath="{.data.values}" > /tmp/values.json
    11. # Use kube-inject based on captured configuration
    12. istioctl kube-inject -f samples/bookinfo/platform/kube/bookinfo.yaml \
    13. --injectConfigFile /tmp/inj-template.tmpl \
    14. --meshConfigFile /tmp/mesh.yaml \
    15. --valuesFile /tmp/values.json

    istioctl manifest

    The manifest command generates and diffs Istio manifests.

    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--dry-run</code></td><td></td><td>Console/log output only, make no changes.</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    istioctl manifest diff

    The diff subcommand compares manifests from two files or directories. The output is a list of changed paths with the value changes shown as OLD-VALUE -> NEW-VALUE. List order changes are shown as [OLD-INDEX->NEW-INDEX], with ? used where a list item is added or removed.

    1. istioctl manifest diff <file|dir> <file|dir> [flags]

    The generate subcommand generates an Istio install manifest and outputs to the console by default.

    1. istioctl manifest generate [flags]
    FlagsShorthandDescription
    —charts <string>Deprecated, use —manifests instead. (default )</td></tr><tr><td><code>--component &lt;stringSlice&gt;</code></td><td></td><td>Specify which component to generate manifests for. (default `[]`)</td></tr><tr><td><code>--context &lt;string&gt;</code></td><td></td><td>The name of the kubeconfig context to use (default)
    —dry-runConsole/log output only, make no changes.
    —filename <stringSlice>-fPath to file containing IstioOperator custom resource This flag can be specified multiple times to overlay multiple files. Multiple files are overlaid in left to right order. (default [])
    —forceProceed even with validation errors.
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--manifests &lt;string&gt;</code></td><td><code>-d</code></td><td>Specify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.15.0/manifests) or release tar URL (e.g. https://github.com/istio/istio/releases/download/1.15.0/istio-1.15.0-linux-amd64.tar.gz). (default)
    —namespace <string>-nConfig namespace (default )</td></tr><tr><td><code>--output &lt;string&gt;</code></td><td><code>-o</code></td><td>Manifest output directory path. (default)
    —revision <string>-rTarget control plane revision for the command. (default `)</td></tr><tr><td><code>--set &lt;stringArray&gt;</code></td><td><code>-s</code></td><td>Override an IstioOperator value, e.g. to choose a profile (--set profile=demo), enable or disable components (--set components.cni.enabled=true), or override Istio settings (--set meshConfig.enableTracing=true). See documentation for more info:https://istio.io/v1.15/docs/reference/config/istio.operator.v1alpha1/#IstioOperatorSpec (default[])</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    istioctl manifest install

    The install command generates an Istio install manifest and applies it to a cluster.

    1. istioctl manifest install [flags]
    1. istioctl manifest apply [flags]
    FlagsShorthandDescription
    —charts <string>Deprecated, use —manifests instead. (default )</td></tr><tr><td><code>--context &lt;string&gt;</code></td><td></td><td>The name of the kubeconfig context to use (default)
    —dry-runConsole/log output only, make no changes.
    —filename <stringSlice>-fPath to file containing IstioOperator custom resource This flag can be specified multiple times to overlay multiple files. Multiple files are overlaid in left to right order. (default [])
    —forceProceed even with validation errors.
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--manifests &lt;string&gt;</code></td><td><code>-d</code></td><td>Specify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.15.0/manifests) or release tar URL (e.g. https://github.com/istio/istio/releases/download/1.15.0/istio-1.15.0-linux-amd64.tar.gz). (default)
    —namespace <string>-nConfig namespace (default )</td></tr><tr><td><code>--readiness-timeout &lt;duration&gt;</code></td><td></td><td>Maximum time to wait for Istio resources in each component to be ready. (default `5m0s`)</td></tr><tr><td><code>--revision &lt;string&gt;</code></td><td><code>-r</code></td><td>Target control plane revision for the command. (default)
    —set <stringArray>-sOverride an IstioOperator value, e.g. to choose a profile (—set profile=demo), enable or disable components (—set components.cni.enabled=true), or override Istio settings (—set meshConfig.enableTracing=true). See documentation for more info: (default [])
    —skip-confirmation-yThe skipConfirmation determines whether the user is prompted for confirmation. If set to true, the user is not prompted and a Yes response is assumed in all cases.
    —verifyVerify the Istio control plane after installation/in-place upgrade
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    Examples

    1. # Apply a default Istio installation
    2. istioctl install
    3. # Enable Tracing
    4. istioctl install --set meshConfig.enableTracing=true
    5. # Generate the demo profile and don't wait for confirmation
    6. istioctl install --set profile=demo --skip-confirmation
    7. # To override a setting that includes dots, escape them with a backslash (\). Your shell may require enclosing quotes.
    8. istioctl install --set "values.sidecarInjectorWebhook.injectedAnnotations.container\.apparmor\.security\.beta\.kubernetes\.io/istio-proxy=runtime/default"
    9. # For setting boolean-string option, it should be enclosed quotes and escaped with a backslash (\).
    10. istioctl install --set meshConfig.defaultConfig.proxyMetadata.PROXY_XDS_VIA_AGENT=\"false\"

    istioctl operator

    The operator command installs, dumps, removes and shows the status of the operator controller.

    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    istioctl operator dump

    The dump subcommand dumps the Istio operator controller manifest.

    1. istioctl operator dump [flags]
    FlagsShorthandDescription
    —charts <string>Deprecated, use —manifests instead. (default )</td></tr><tr><td><code>--context &lt;string&gt;</code></td><td></td><td>The name of the kubeconfig context to use (default)
    —dry-runConsole/log output only, make no changes.
    —hub <string>The hub for the operator controller image. (default unknown)
    —imagePullSecrets <stringSlice>The imagePullSecrets are used to pull the operator image from the private registry, could be secret list separated by comma, eg. ‘—imagePullSecrets imagePullSecret1,imagePullSecret2’ (default [])
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--manifests &lt;string&gt;</code></td><td><code>-d</code></td><td>Specify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.15.0/manifests) or release tar URL (e.g. https://github.com/istio/istio/releases/download/1.15.0/istio-1.15.0-linux-amd64.tar.gz). (default)
    —namespace <string>-nConfig namespace (default )</td></tr><tr><td><code>--operatorNamespace &lt;string&gt;</code></td><td></td><td>The namespace the operator controller is installed into. (default `istio-operator`)</td></tr><tr><td><code>--output &lt;string&gt;</code></td><td><code>-o</code></td><td>Output format: one of json|yaml (default `yaml`)</td></tr><tr><td><code>--revision &lt;string&gt;</code></td><td><code>-r</code></td><td>Target revision for the operator. (default)
    —tag <string>The tag for the operator controller image. (default unknown)
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)
    —watchedNamespaces <string>The namespaces the operator controller watches, could be namespace list separated by comma, eg. ‘ns1,ns2’ (default istio-system)

    istioctl operator init

    The init subcommand installs the Istio operator controller in the cluster.

    1. istioctl operator init [flags]
    FlagsShorthandDescription
    —charts <string>Deprecated, use —manifests instead. (default )</td></tr><tr><td><code>--context &lt;string&gt;</code></td><td></td><td>The name of the kubeconfig context to use (default)
    —dry-runConsole/log output only, make no changes.
    —filename <string>-fPath to file containing IstioOperator custom resource This flag can be specified multiple times to overlay multiple files. Multiple files are overlaid in left to right order. (default )</td></tr><tr><td><code>--hub &lt;string&gt;</code></td><td></td><td>The hub for the operator controller image. (default `unknown`)</td></tr><tr><td><code>--imagePullSecrets &lt;stringSlice&gt;</code></td><td></td><td>The imagePullSecrets are used to pull the operator image from the private registry, could be secret list separated by comma, eg. '--imagePullSecrets imagePullSecret1,imagePullSecret2' (default `[]`)</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —manifests <string>-dSpecify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.15.0/manifests) or release tar URL (e.g. https://github.com/istio/istio/releases/download/1.15.0/istio-1.15.0-linux-amd64.tar.gz). (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —operatorNamespace <string>The namespace the operator controller is installed into. (default istio-operator)
    —revision <string>-rTarget revision for the operator. (default `)</td></tr><tr><td><code>--tag &lt;string&gt;</code></td><td></td><td>The tag for the operator controller image. (defaultunknown)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0)</td></tr><tr><td><code>--watchedNamespaces &lt;string&gt;</code></td><td></td><td>The namespaces the operator controller watches, could be namespace list separated by comma, eg. 'ns1,ns2' (defaultistio-system`)

    istioctl operator remove

    The remove subcommand removes the Istio operator controller from the cluster.

    1. istioctl operator remove [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--dry-run</code></td><td></td><td>Console/log output only, make no changes.</td></tr><tr><td><code>--force</code></td><td></td><td>Proceed even with validation errors.</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default )</td></tr><tr><td><code>--operatorNamespace &lt;string&gt;</code></td><td></td><td>The namespace the operator controller is installed into. (default `istio-operator`)</td></tr><tr><td><code>--revision &lt;string&gt;</code></td><td><code>-r</code></td><td>Target revision for the operator. (default)
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    istioctl options

    Displays istioctl global options

    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    istioctl profile

    The profile command lists, dumps or diffs Istio configuration profiles.

    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--dry-run</code></td><td></td><td>Console/log output only, make no changes.</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. istioctl profile list
    2. istioctl install --set profile=demo # Use a profile from the list

    istioctl profile diff

    The diff subcommand displays the differences between two Istio configuration profiles.

    1. istioctl profile diff <profile|file1.yaml> <profile|file2.yaml> [flags]
    FlagsShorthandDescription
    —charts <string>Deprecated, use —manifests instead. (default )</td></tr><tr><td><code>--context &lt;string&gt;</code></td><td></td><td>The name of the kubeconfig context to use (default)
    —dry-runConsole/log output only, make no changes.
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--manifests &lt;string&gt;</code></td><td><code>-d</code></td><td>Specify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.15.0/manifests) or release tar URL (e.g. https://github.com/istio/istio/releases/download/1.15.0/istio-1.15.0-linux-amd64.tar.gz). (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # Profile diff by providing yaml files
    2. istioctl profile diff manifests/profiles/default.yaml manifests/profiles/demo.yaml
    3. # Profile diff by providing a profile name
    4. istioctl profile diff default demo

    istioctl profile dump

    The dump subcommand dumps the values in an Istio configuration profile.

    1. istioctl profile dump [<profile>] [flags]
    FlagsShorthandDescription
    —charts <string>Deprecated, use —manifests instead. (default )</td></tr><tr><td><code>--config-path &lt;string&gt;</code></td><td><code>-p</code></td><td>The path the root of the configuration subtree to dump e.g. components.pilot. By default, dump whole tree (default)
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--dry-run</code></td><td></td><td>Console/log output only, make no changes.</td></tr><tr><td><code>--filename &lt;stringSlice&gt;</code></td><td><code>-f</code></td><td>Path to file containing IstioOperator custom resource This flag can be specified multiple times to overlay multiple files. Multiple files are overlaid in left to right order. (default `[]`)</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —manifests <string>-dSpecify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.15.0/manifests) or release tar URL (e.g. https://github.com/istio/istio/releases/download/1.15.0/istio-1.15.0-linux-amd64.tar.gz). (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —output <string>-oOutput format: one of json|yaml|flags (default yaml)
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    istioctl profile list

    The list subcommand lists the available Istio configuration profiles.

    1. istioctl profile list [flags]
    FlagsShorthandDescription
    —charts <string>Deprecated, use —manifests instead. (default )</td></tr><tr><td><code>--context &lt;string&gt;</code></td><td></td><td>The name of the kubeconfig context to use (default)
    —dry-runConsole/log output only, make no changes.
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--manifests &lt;string&gt;</code></td><td><code>-d</code></td><td>Specify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.15.0/manifests) or release tar URL (e.g. https://github.com/istio/istio/releases/download/1.15.0/istio-1.15.0-linux-amd64.tar.gz). (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    istioctl proxy-config

    A group of commands used to retrieve information about proxy configuration from the Envoy config dump

    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--output &lt;string&gt;</code></td><td><code>-o</code></td><td>Output format: one of json|yaml|short (defaultshort)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # Retrieve information about proxy configuration from an Envoy instance.
    2. istioctl proxy-config <clusters|listeners|routes|endpoints|bootstrap|log|secret> <pod-name[.namespace]>

    istioctl proxy-config all

    Retrieve information about all configuration for the Envoy instance in the specified pod.

    1. istioctl proxy-config all [<type>/]<name>[.<namespace>] [flags]
    1. istioctl proxy-config a [<type>/]<name>[.<namespace>] [flags]
    FlagsShorthandDescription
    —address <string>Filter listeners by address field (default )</td></tr><tr><td><code>--context &lt;string&gt;</code></td><td></td><td>The name of the kubeconfig context to use (default)
    —direction <string>Filter clusters by Direction field (default )</td></tr><tr><td><code>--file &lt;string&gt;</code></td><td><code>-f</code></td><td>Envoy config dump file (default)
    —fqdn <string>Filter clusters by substring of Service FQDN field (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —name <string>Filter listeners by route name field (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —output <string>-oOutput format: one of json|yaml|short (default short)
    —port <int>Filter clusters and listeners by Port field (default 0)
    —subset <string>Filter clusters by substring of Subset field (default )</td></tr><tr><td><code>--type &lt;string&gt;</code></td><td></td><td>Filter listeners by type field (default)
    —verboseOutput more information
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    Examples

    1. # Retrieve summary about all configuration for a given pod from Envoy.
    2. istioctl proxy-config all <pod-name[.namespace]>
    3. # Retrieve full cluster dump as JSON
    4. istioctl proxy-config all <pod-name[.namespace]> -o json
    5. # Retrieve full cluster dump with short syntax
    6. istioctl pc a <pod-name[.namespace]>
    7. # Retrieve cluster summary without using Kubernetes API
    8. ssh <user@hostname> 'curl localhost:15000/config_dump' > envoy-config.json
    9. istioctl proxy-config all --file envoy-config.json

    istioctl proxy-config bootstrap

    Retrieve information about bootstrap configuration for the Envoy instance in the specified pod.

    1. istioctl proxy-config bootstrap [<type>/]<name>[.<namespace>] [flags]
    1. istioctl proxy-config b [<type>/]<name>[.<namespace>] [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--file &lt;string&gt;</code></td><td><code>-f</code></td><td>Envoy config dump JSON file (default)
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —output <string>-oOutput format: one of json|yaml|short (default short)
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    Examples

    1. # Retrieve full bootstrap configuration for a given pod from Envoy.
    2. istioctl proxy-config bootstrap <pod-name[.namespace]>
    3. # Retrieve full bootstrap without using Kubernetes API
    4. ssh <user@hostname> 'curl localhost:15000/config_dump' > envoy-config.json
    5. istioctl proxy-config bootstrap --file envoy-config.json
    6. # Show a human-readable Istio and Envoy version summary
    7. istioctl proxy-config bootstrap -o short

    istioctl proxy-config cluster

    Retrieve information about cluster configuration for the Envoy instance in the specified pod.

    1. istioctl proxy-config cluster [<type>/]<name>[.<namespace>] [flags]
    1. istioctl proxy-config clusters [<type>/]<name>[.<namespace>] [flags]
    2. istioctl proxy-config c [<type>/]<name>[.<namespace>] [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--direction &lt;string&gt;</code></td><td></td><td>Filter clusters by Direction field (default)
    —file <string>-fEnvoy config dump JSON file (default )</td></tr><tr><td><code>--fqdn &lt;string&gt;</code></td><td></td><td>Filter clusters by substring of Service FQDN field (default)
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —output <string>-oOutput format: one of json|yaml|short (default short)
    —port <int>Filter clusters by Port field (default 0)
    —subset <string>Filter clusters by substring of Subset field (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # Retrieve summary about cluster configuration for a given pod from Envoy.
    2. istioctl proxy-config clusters <pod-name[.namespace]>
    3. # Retrieve cluster summary for clusters with port 9080.
    4. istioctl proxy-config clusters <pod-name[.namespace]> --port 9080
    5. # Retrieve full cluster dump for clusters that are inbound with a FQDN of details.default.svc.cluster.local.
    6. istioctl proxy-config clusters <pod-name[.namespace]> --fqdn details.default.svc.cluster.local --direction inbound -o json
    7. # Retrieve cluster summary without using Kubernetes API
    8. ssh <user@hostname> 'curl localhost:15000/config_dump' > envoy-config.json
    9. istioctl proxy-config clusters --file envoy-config.json

    istioctl proxy-config endpoint

    Retrieve information about endpoint configuration for the Envoy instance in the specified pod.

    1. istioctl proxy-config endpoint [<type>/]<name>[.<namespace>] [flags]
    1. istioctl proxy-config endpoints [<type>/]<name>[.<namespace>] [flags]
    2. istioctl proxy-config ep [<type>/]<name>[.<namespace>] [flags]
    FlagsShorthandDescription
    —address <string>Filter endpoints by address field (default )</td></tr><tr><td><code>--cluster &lt;string&gt;</code></td><td></td><td>Filter endpoints by cluster name field (default)
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--file &lt;string&gt;</code></td><td><code>-f</code></td><td>Envoy config dump JSON file (default)
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —output <string>-oOutput format: one of json|yaml|short (default short)
    —port <int>Filter endpoints by Port field (default 0)
    —status <string>Filter endpoints by status field (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # Retrieve full endpoint configuration for a given pod from Envoy.
    2. istioctl proxy-config endpoint <pod-name[.namespace]>
    3. # Retrieve endpoint summary for endpoint with port 9080.
    4. istioctl proxy-config endpoint <pod-name[.namespace]> --port 9080
    5. # Retrieve full endpoint with a address (172.17.0.2).
    6. istioctl proxy-config endpoint <pod-name[.namespace]> --address 172.17.0.2 -o json
    7. # Retrieve full endpoint with a cluster name (outbound|9411||zipkin.istio-system.svc.cluster.local).
    8. istioctl proxy-config endpoint <pod-name[.namespace]> --cluster "outbound|9411||zipkin.istio-system.svc.cluster.local" -o json
    9. # Retrieve full endpoint with the status (healthy).
    10. istioctl proxy-config endpoint <pod-name[.namespace]> --status healthy -ojson
    11. # Retrieve endpoint summary without using Kubernetes API
    12. ssh <user@hostname> 'curl localhost:15000/clusters?format=json' > envoy-clusters.json
    13. istioctl proxy-config endpoints --file envoy-clusters.json

    istioctl proxy-config listener

    Retrieve information about listener configuration for the Envoy instance in the specified pod.

    1. istioctl proxy-config listener [<type>/]<name>[.<namespace>] [flags]
    1. istioctl proxy-config listeners [<type>/]<name>[.<namespace>] [flags]
    2. istioctl proxy-config l [<type>/]<name>[.<namespace>] [flags]
    FlagsShorthandDescription
    —address <string>Filter listeners by address field (default )</td></tr><tr><td><code>--context &lt;string&gt;</code></td><td></td><td>The name of the kubeconfig context to use (default)
    —file <string>-fEnvoy config dump JSON file (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>Config namespace (default )</td></tr><tr><td><code>--output &lt;string&gt;</code></td><td><code>-o</code></td><td>Output format: one of json|yaml|short (default `short`)</td></tr><tr><td><code>--port &lt;int&gt;</code></td><td></td><td>Filter listeners by Port field (default `0`)</td></tr><tr><td><code>--type &lt;string&gt;</code></td><td></td><td>Filter listeners by type field (default)
    —verboseOutput more information
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    Examples

    1. # Retrieve summary about listener configuration for a given pod from Envoy.
    2. istioctl proxy-config listeners <pod-name[.namespace]>
    3. # Retrieve listener summary for listeners with port 9080.
    4. istioctl proxy-config listeners <pod-name[.namespace]> --port 9080
    5. # Retrieve full listener dump for HTTP listeners with a wildcard address (0.0.0.0).
    6. istioctl proxy-config listeners <pod-name[.namespace]> --type HTTP --address 0.0.0.0 -o json
    7. # Retrieve listener summary without using Kubernetes API
    8. ssh <user@hostname> 'curl localhost:15000/config_dump' > envoy-config.json
    9. istioctl proxy-config listeners --file envoy-config.json

    istioctl proxy-config log

    (experimental) Retrieve information about logging levels of the Envoy instance in the specified pod, and update optionally

    1. istioctl proxy-config log [<type>/]<name>[.<namespace>] [flags]
    1. istioctl proxy-config o [<type>/]<name>[.<namespace>] [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —level <string>Comma-separated minimum per-logger level of messages to output, in the form of [<logger>:]<level>,[<logger>:]<level>,… where logger can be one of admin, aws, assert, backtrace, client, config, connection, conn_handler, dubbo, file, filter, forward_proxy, grpc, hc, health_checker, http, http2, hystrix, init, io, jwt, kafka, lua, main, misc, mongo, quic, pool, rbac, redis, router, runtime, stats, secret, tap, testing, thrift, tracing, upstream, udp, wasm and level can be one of [trace, debug, info, warning, error, critical, off] (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —output <string>-oOutput format: one of json|yaml|short (default short)
    —reset-rReset levels to default value (warning).
    —selector <string>-lLabel selector (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # Retrieve information about logging levels for a given pod from Envoy.
    2. istioctl proxy-config log <pod-name[.namespace]>
    3. # Update levels of the all loggers
    4. istioctl proxy-config log <pod-name[.namespace]> --level none
    5. # Update levels of the specified loggers.
    6. istioctl proxy-config log <pod-name[.namespace]> --level http:debug,redis:debug
    7. # Reset levels of all the loggers to default value (warning).
    8. istioctl proxy-config log <pod-name[.namespace]> -r

    istioctl proxy-config rootca-compare

    Compare ROOTCA values for given 2 pods to check the connectivity between them.

    THIS COMMAND IS UNDER ACTIVE DEVELOPMENT AND NOT READY FOR PRODUCTION USE.

    1. istioctl proxy-config rootca-compare [pod/]<name-1>[.<namespace-1>] [pod/]<name-2>[.<namespace-2>] [flags]
    1. istioctl proxy-config rc [pod/]<name-1>[.<namespace-1>] [pod/]<name-2>[.<namespace-2>] [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--output &lt;string&gt;</code></td><td><code>-o</code></td><td>Output format: one of json|yaml|short (defaultshort)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # Compare ROOTCA values for given 2 pods to check the connectivity between them.
    2. istioctl proxy-config rootca-compare <pod-name-1[.namespace]> <pod-name-2[.namespace]>

    istioctl proxy-config route

    Retrieve information about route configuration for the Envoy instance in the specified pod.

    1. istioctl proxy-config route [<type>/]<name>[.<namespace>] [flags]
    1. istioctl proxy-config routes [<type>/]<name>[.<namespace>] [flags]
    2. istioctl proxy-config r [<type>/]<name>[.<namespace>] [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--file &lt;string&gt;</code></td><td><code>-f</code></td><td>Envoy config dump JSON file (default)
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--name &lt;string&gt;</code></td><td></td><td>Filter listeners by route name field (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--output &lt;string&gt;</code></td><td><code>-o</code></td><td>Output format: one of json|yaml|short (defaultshort)</td></tr><tr><td><code>--verbose</code></td><td></td><td>Output more information</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # Retrieve summary about route configuration for a given pod from Envoy.
    2. istioctl proxy-config routes <pod-name[.namespace]>
    3. # Retrieve route summary for route 9080.
    4. istioctl proxy-config route <pod-name[.namespace]> --name 9080
    5. # Retrieve full route dump for route 9080
    6. istioctl proxy-config route <pod-name[.namespace]> --name 9080 -o json
    7. # Retrieve route summary without using Kubernetes API
    8. ssh <user@hostname> 'curl localhost:15000/config_dump' > envoy-config.json
    9. istioctl proxy-config routes --file envoy-config.json

    istioctl proxy-config secret

    Retrieve information about secret configuration for the Envoy instance in the specified pod.

    THIS COMMAND IS UNDER ACTIVE DEVELOPMENT AND NOT READY FOR PRODUCTION USE.

    1. istioctl proxy-config secret [<type>/]<name>[.<namespace>] [flags]
    1. istioctl proxy-config secrets [<type>/]<name>[.<namespace>] [flags]
    2. istioctl proxy-config s [<type>/]<name>[.<namespace>] [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--file &lt;string&gt;</code></td><td><code>-f</code></td><td>Envoy config dump JSON file (default)
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —output <string>-oOutput format: one of json|yaml|short (default short)
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    Examples

    1. # Retrieve full secret configuration for a given pod from Envoy.
    2. istioctl proxy-config secret <pod-name[.namespace]>
    3. # Retrieve full bootstrap without using Kubernetes API
    4. ssh <user@hostname> 'curl localhost:15000/config_dump' > envoy-config.json
    5. istioctl proxy-config secret --file envoy-config.json

    istioctl proxy-status

    Retrieves last sent and last acknowledged xDS sync from Istiod to each Envoy in the mesh

    1. istioctl proxy-status [<type>/]<name>[.<namespace>] [flags]
    1. istioctl ps [<type>/]<name>[.<namespace>] [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--file &lt;string&gt;</code></td><td><code>-f</code></td><td>Envoy config dump JSON file (default)
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —revision <string>-rControl plane revision (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # Retrieve sync status for all Envoys in a mesh
    2. istioctl proxy-status
    3. # Retrieve sync diff for a single Envoy and Istiod
    4. istioctl proxy-status istio-egressgateway-59585c5b9c-ndc59.istio-system
    5. # Retrieve sync diff between Istiod and one pod under a deployment
    6. istioctl proxy-status deployment/productpage-v1
    7. # Write proxy config-dump to file, and compare to Istio control plane
    8. kubectl port-forward -n istio-system istio-egressgateway-59585c5b9c-ndc59 15000 &
    9. curl localhost:15000/config_dump > cd.json
    10. istioctl proxy-status istio-egressgateway-59585c5b9c-ndc59.istio-system --file cd.json

    istioctl tag

    Command group used to interact with revision tags. Revision tags allow for the creation of mutable aliases referring to control plane revisions for sidecar injection.

    With revision tags, rather than relabeling a namespace from “istio.io/rev=revision-a” to “istio.io/rev=revision-b” to change which control plane revision handles injection, it’s possible to create a revision tag “prod” and label our namespace “istio.io/rev=prod”. The “prod” revision tag could point to “1-7-6” initially and then be changed to point to “1-8-1” at some later point.

    This allows operators to change which Istio control plane revision should handle injection for a namespace or set of namespaces without manual relabeling of the “istio.io/rev” tag.

    1. istioctl tag [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    istioctl tag generate

    Create a revision tag and output to the command’s stdout. Tag an Istio control plane revision for use with namespace istio.io/rev injection labels.

    1. istioctl tag generate <revision-tag> [flags]
    FlagsShorthandDescription
    —auto-inject-namespacesIf set to true, the sidecars should be automatically injected into all namespaces by default
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —manifests <string>-dSpecify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.15.0/manifests) or release tar URL (e.g. https://github.com/istio/istio/releases/download/1.15.0/istio-1.15.0-linux-amd64.tar.gz). (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —overwriteIf true, allow revision tags to be overwritten, otherwise reject revision tag updates that overwrite existing revision tags.
    —revision <string>-rControl plane revision to reference from a given revision tag (default )</td></tr><tr><td><code>--skip-confirmation</code></td><td><code>-y</code></td><td>The skipConfirmation determines whether the user is prompted for confirmation. If set to true, the user is not prompted and a Yes response is assumed in all cases.</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`)</td></tr><tr><td><code>--webhook-name &lt;string&gt;</code></td><td></td><td>Name to use for a revision tag's mutating webhook configuration. (default)

    Examples

    1. # Create a revision tag from the "1-8-0" revision
    2. istioctl tag generate prod --revision 1-8-0 > tag.yaml
    3. # Apply the tag to cluster
    4. kubectl apply -f tag.yaml
    5. # Point namespace "test-ns" at the revision pointed to by the "prod" revision tag
    6. kubectl label ns test-ns istio.io/rev=prod
    7. # Rollout namespace "test-ns" to update workloads to the "1-8-0" revision
    8. kubectl rollout restart deployments -n test-ns

    istioctl tag list

    List existing revision tags

    1. istioctl tag list [flags]
    1. istioctl tag show [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. istioctl tag list

    istioctl tag remove

    Remove Istio control plane revision tag.

    Removing a revision tag should be done with care. Removing a revision tag will disrupt sidecar injection in namespaces that reference the tag in an “istio.io/rev” label. Verify that there are no remaining namespaces referencing a revision tag before removing using the “istioctl tag list” command.

    1. istioctl tag remove <revision-tag> [flags]
    1. istioctl tag delete <revision-tag> [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--skip-confirmation</code></td><td><code>-y</code></td><td>The skipConfirmation determines whether the user is prompted for confirmation. If set to true, the user is not prompted and a Yes response is assumed in all cases.</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # Remove the revision tag "prod"
    2. istioctl tag remove prod

    istioctl tag set

    Create or modify revision tags. Tag an Istio control plane revision for use with namespace istio.io/rev injection labels.

    1. istioctl tag set <revision-tag> [flags]
    FlagsShorthandDescription
    —auto-inject-namespacesIf set to true, the sidecars should be automatically injected into all namespaces by default
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —manifests <string>-dSpecify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.15.0/manifests) or release tar URL (e.g. ). (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —overwriteIf true, allow revision tags to be overwritten, otherwise reject revision tag updates that overwrite existing revision tags.
    —revision <string>-rControl plane revision to reference from a given revision tag (default )</td></tr><tr><td><code>--skip-confirmation</code></td><td><code>-y</code></td><td>The skipConfirmation determines whether the user is prompted for confirmation. If set to true, the user is not prompted and a Yes response is assumed in all cases.</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`)</td></tr><tr><td><code>--webhook-name &lt;string&gt;</code></td><td></td><td>Name to use for a revision tag's mutating webhook configuration. (default)

    Examples

    1. # Create a revision tag from the "1-8-0" revision
    2. istioctl tag set prod --revision 1-8-0
    3. # Point namespace "test-ns" at the revision pointed to by the "prod" revision tag
    4. kubectl label ns test-ns istio.io/rev=prod
    5. # Change the revision tag to reference the "1-8-1" revision
    6. istioctl tag set prod --revision 1-8-1 --overwrite
    7. # Make revision "1-8-1" the default revision, both resulting in that revision handling injection for "istio-injection=enabled"
    8. # and validating resources cluster-wide
    9. istioctl tag set default --revision 1-8-1
    10. # Rollout namespace "test-ns" to update workloads to the "1-8-1" revision
    11. kubectl rollout restart deployments -n test-ns

    istioctl uninstall

    The uninstall command uninstalls Istio from a cluster

    1. istioctl uninstall [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--dry-run</code></td><td></td><td>Console/log output only, make no changes.</td></tr><tr><td><code>--filename &lt;string&gt;</code></td><td><code>-f</code></td><td>The filename of the IstioOperator CR. (default)
    —forceProceed even with validation errors.
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--manifests &lt;string&gt;</code></td><td><code>-d</code></td><td>Specify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.15.0/manifests) or release tar URL (e.g. https://github.com/istio/istio/releases/download/1.15.0/istio-1.15.0-linux-amd64.tar.gz). (default)
    —namespace <string>-nConfig namespace (default )</td></tr><tr><td><code>--purge</code></td><td></td><td>Delete all Istio related sources for all versions</td></tr><tr><td><code>--revision &lt;string&gt;</code></td><td><code>-r</code></td><td>Target control plane revision for the command. (default)
    —set <stringArray>-sOverride an IstioOperator value, e.g. to choose a profile (—set profile=demo), enable or disable components (—set components.cni.enabled=true), or override Istio settings (—set meshConfig.enableTracing=true). See documentation for more info:https://istio.io/v1.15/docs/reference/config/istio.operator.v1alpha1/#IstioOperatorSpec (default [])
    —skip-confirmation-yThe skipConfirmation determines whether the user is prompted for confirmation. If set to true, the user is not prompted and a Yes response is assumed in all cases.
    —verbose-vVerbose output.
    —vklog <Level>number for the log level verbosity. Like -v flag. ex: —vklog=9 (default 0)

    Examples

    1. # Uninstall a single control plane by revision
    2. istioctl uninstall --revision foo
    3. # Uninstall a single control plane by iop file
    4. istioctl uninstall -f iop.yaml
    5. # Uninstall all control planes and shared resources
    6. istioctl uninstall --purge

    istioctl upgrade

    The upgrade command is an alias for the install command that performs additional upgrade-related checks.

    1. istioctl upgrade [flags]
    FlagsShorthandDescription
    —charts <string>Deprecated, use —manifests instead. (default )</td></tr><tr><td><code>--context &lt;string&gt;</code></td><td></td><td>The name of the kubeconfig context to use (default)
    —dry-runConsole/log output only, make no changes.
    —filename <stringSlice>-fPath to file containing IstioOperator custom resource This flag can be specified multiple times to overlay multiple files. Multiple files are overlaid in left to right order. (default [])
    —forceProceed even with validation errors.
    —istioNamespace <string>-iIstio system namespace (default istio-system)
    —kubeconfig <string>-cKubernetes configuration file (default )</td></tr><tr><td><code>--manifests &lt;string&gt;</code></td><td><code>-d</code></td><td>Specify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.15.0/manifests) or release tar URL (e.g. https://github.com/istio/istio/releases/download/1.15.0/istio-1.15.0-linux-amd64.tar.gz). (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--readiness-timeout &lt;duration&gt;</code></td><td></td><td>Maximum time to wait for Istio resources in each component to be ready. (default5m0s)</td></tr><tr><td><code>--set &lt;stringArray&gt;</code></td><td><code>-s</code></td><td>Override an IstioOperator value, e.g. to choose a profile (--set profile=demo), enable or disable components (--set components.cni.enabled=true), or override Istio settings (--set meshConfig.enableTracing=true). See documentation for more info:https://istio.io/v1.15/docs/reference/config/istio.operator.v1alpha1/#IstioOperatorSpec (default[])</td></tr><tr><td><code>--skip-confirmation</code></td><td><code>-y</code></td><td>The skipConfirmation determines whether the user is prompted for confirmation. If set to true, the user is not prompted and a Yes response is assumed in all cases.</td></tr><tr><td><code>--verify</code></td><td></td><td>Verify the Istio control plane after installation/in-place upgrade</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    istioctl validate

    Validate Istio policy and rules files

    1. istioctl validate -f FILENAME [options] [flags]
    1. istioctl v -f FILENAME [options] [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--filename &lt;stringSlice&gt;</code></td><td><code>-f</code></td><td>Names of files to validate (default `[]`)</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —namespace <string>-nConfig namespace (default `)</td></tr><tr><td><code>--referential</code></td><td><code>-x</code></td><td>Enable structural validation for policy and telemetry</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

    Examples

    1. # Validate bookinfo-gateway.yaml
    2. istioctl validate -f samples/bookinfo/networking/bookinfo-gateway.yaml
    3. # Validate bookinfo-gateway.yaml with shorthand syntax
    4. istioctl v -f samples/bookinfo/networking/bookinfo-gateway.yaml
    5. # Validate current deployments under 'default' namespace within the cluster
    6. kubectl get deployments -o yaml | istioctl validate -f -
    7. # Validate current services under 'default' namespace within the cluster
    8. kubectl get services -o yaml | istioctl validate -f -
    9. # Also see the related command 'istioctl analyze'
    10. istioctl analyze samples/bookinfo/networking/bookinfo-gateway.yaml

    istioctl verify-install

    verify-install verifies Istio installation status against the installation file you specified when you installed Istio. It loops through all the installation resources defined in your installation file and reports whether all of them are in ready status. It will report failure when any of them are not ready.

    If you do not specify an installation it will check for an IstioOperator resource and will verify if pods and services defined in it are present.

    Note: For verifying whether your cluster is ready for Istio installation, see istioctl experimental precheck.

    1. istioctl verify-install [-f <deployment or istio operator file>] [--revision <revision>] [flags]
    FlagsShorthandDescription
    —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--filename &lt;stringSlice&gt;</code></td><td><code>-f</code></td><td>Istio YAML installation file. (default `[]`)</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
    —manifests <string>-dSpecify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.15.0/manifests) or release tar URL (e.g. https://github.com/istio/istio/releases/download/1.15.0/istio-1.15.0-linux-amd64.tar.gz). (default )</td></tr><tr><td><code>--namespace &lt;string&gt;</code></td><td><code>-n</code></td><td>Config namespace (default)
    —revision <string>-rControl plane revision (default `)</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)
    1. # Verify that Istio is installed correctly via Istio Operator
    2. istioctl verify-install
    3. # Verify the deployment matches a custom Istio deployment configuration
    4. istioctl verify-install -f $HOME/istio.yaml
    5. # Verify the deployment matches the Istio Operator deployment definition
    6. istioctl verify-install --revision <canary>
    7. # Verify the installation of specific revision
    8. istioctl verify-install -r 1-9-0

    istioctl version

    Prints out build version information

      FlagsShorthandDescription
      —context <string>The name of the kubeconfig context to use (default )</td></tr><tr><td><code>--istioNamespace &lt;string&gt;</code></td><td><code>-i</code></td><td>Istio system namespace (default `istio-system`)</td></tr><tr><td><code>--kubeconfig &lt;string&gt;</code></td><td><code>-c</code></td><td>Kubernetes configuration file (default)
      —namespace <string>-nConfig namespace (default )</td></tr><tr><td><code>--output &lt;string&gt;</code></td><td><code>-o</code></td><td>One of 'yaml' or 'json'. (default)
      —remoteUse —remote=false to suppress control plane check
      —revision <string>-rControl plane revision (default `)</td></tr><tr><td><code>--short</code></td><td><code>-s</code></td><td>Use --short=false to generate full version information</td></tr><tr><td><code>--vklog &lt;Level&gt;</code></td><td></td><td>number for the log level verbosity. Like -v flag. ex: --vklog=9 (default0`)

      Environment variables

      Metric NameTypeDescription
      auto_registration_deletes_totalSumTotal number of auto registration cleaned up by periodic timer.
      auto_registration_errors_totalSumTotal number of auto registration errors.
      auto_registration_success_totalSumTotal number of successful auto registrations.
      auto_registration_unregister_totalSumTotal number of unregistrations.
      auto_registration_updates_totalSumTotal number of auto registration updates.
      cache_flush_totalSumnumber of times operator cache was flushed
      controller_sync_errors_totalSumTotal number of errorMetric syncing controllers.
      cr_deletion_totalSumNumber of IstioOperator CR deleted
      cr_merge_failure_totalSumNumber of IstioOperator CR merge failures
      cr_validation_error_totalSumNumber of IstioOperator CR validation failures
      endpoint_no_podLastValueEndpoints without an associated pod.
      get_cr_error_totalSumNumber of times fetching CR from apiserver failed
      istio_buildLastValueIstio component build info
      istiod_managed_clustersLastValueNumber of clusters managed by istiod
      legacy_path_translation_totalSumNumber of times a legacy API path is translated
      manifest_patch_error_totalSumNumber of times K8S patch overlays failed
      manifest_render_error_totalSumNumber of times error occurred during rendering output manifest
      num_outgoing_retriesSumNumber of outgoing retry requests (e.g. to a token exchange server, CA, etc.)
      owned_resource_totalLastValueNumber of resources currently owned by the operator
      pilot_conflict_inbound_listenerLastValueNumber of conflicting inbound listeners.
      pilot_conflict_outbound_listener_http_over_current_tcpLastValueNumber of conflicting wildcard http listeners with current wildcard tcp listener.
      pilot_conflict_outbound_listener_tcp_over_current_httpLastValueNumber of conflicting wildcard tcp listeners with current wildcard http listener.
      pilot_conflict_outbound_listener_tcp_over_current_tcpLastValueNumber of conflicting tcp listeners with current tcp listener.
      pilot_destrule_subsetsLastValueDuplicate subsets across destination rules for same host
      pilot_duplicate_envoy_clustersLastValueDuplicate envoy clusters caused by service entries with same hostname
      pilot_eds_no_instancesLastValueNumber of clusters without instances.
      pilot_endpoint_not_readyLastValueEndpoint found in unready state.
      pilot_inbound_updatesSumTotal number of updates received by pilot.
      pilot_jwks_resolver_network_fetch_fail_totalSumTotal number of failed network fetch by pilot jwks resolver
      pilot_jwks_resolver_network_fetch_success_totalSumTotal number of successfully network fetch by pilot jwks resolver
      pilot_k8s_cfg_eventsSumEvents from k8s config.
      pilot_k8s_endpoints_pending_podLastValueNumber of endpoints that do not currently have any corresponding pods.
      pilot_k8s_endpoints_with_no_podsSumEndpoints that does not have any corresponding pods.
      pilot_k8s_reg_eventsSumEvents from k8s registry.
      pilot_no_ipLastValuePods not found in the endpoint table, possibly invalid.
      pilot_proxy_convergence_timeDistributionDelay in seconds between config change and a proxy receiving all required configuration.
      pilot_proxy_queue_timeDistributionTime in seconds, a proxy is in the push queue before being dequeued.
      pilot_push_triggersSumTotal number of times a push was triggered, labeled by reason for the push.
      pilot_pushcontext_init_secondsDistributionTotal time in seconds Pilot takes to init pushContext.
      pilot_sds_certificate_errors_totalSumTotal number of failures to fetch SDS key and certificate.
      pilot_servicesLastValueTotal services known to pilot.
      pilot_total_rejected_configsSumTotal number of configs that Pilot had to reject or ignore.
      pilot_total_xds_internal_errorsSumTotal number of internal XDS errors in pilot.
      pilot_total_xds_rejectsSumTotal number of XDS responses from pilot rejected by proxy.
      pilot_virt_servicesLastValueTotal virtual services known to pilot.
      pilot_vservice_dup_domainLastValueVirtual services with dup domains.
      pilot_xdsLastValueNumber of endpoints connected to this pilot using XDS.
      pilot_xds_cds_rejectLastValuePilot rejected CDS configs.
      pilot_xds_config_size_bytesDistributionDistribution of configuration sizes pushed to clients
      pilot_xds_delayed_push_timeouts_totalSumTotal number of XDS pushes that are delayed and timed out
      pilot_xds_delayed_pushes_totalSumTotal number of XDS pushes that are delayed.
      pilot_xds_eds_rejectLastValuePilot rejected EDS.
      pilot_xds_expired_nonceSumTotal number of XDS requests with an expired nonce.
      pilot_xds_lds_rejectLastValuePilot rejected LDS.
      pilot_xds_push_context_errorsSumNumber of errors (timeouts) initiating push context.
      pilot_xds_push_timeDistributionTotal time in seconds Pilot takes to push lds, rds, cds and eds.
      pilot_xds_pushesSumPilot build and send errors for lds, rds, cds and eds.
      pilot_xds_rds_rejectLastValuePilot rejected RDS.
      pilot_xds_send_timeDistributionTotal time in seconds Pilot takes to send generated configuration.
      pilot_xds_write_timeoutSumPilot XDS response write timeouts.
      remote_cluster_sync_timeouts_totalSumNumber of times remote clusters took too long to sync, causing slow startup that excludes remote clusters.
      render_manifest_totalSumNumber of component manifests rendered
      resource_creation_totalSumNumber of resources created by the operator
      resource_deletion_totalSumNumber of resources deleted by the operator
      resource_prune_totalSumNumber of resources pruned by the operator
      resource_update_totalSumNumber of resources updated by the operator
      scrape_failures_totalSumThe total number of failed scrapes.
      scrapes_totalSumThe total number of scrapes.
      sidecar_injection_failure_totalSumTotal number of failed sidecar injection requests.
      sidecar_injection_requests_totalSumTotal number of sidecar injection requests.
      sidecar_injection_skip_totalSumTotal number of skipped sidecar injection requests.
      sidecar_injection_success_totalSumTotal number of successful sidecar injection requests.
      startup_duration_secondsLastValueThe time from the process starting to being marked ready.
      versionLastValueVersion of operator binary
      wasm_cache_entriesLastValuenumber of Wasm remote fetch cache entries.
      wasm_cache_lookup_countSumnumber of Wasm remote fetch cache lookups.
      wasm_config_conversion_countSumnumber of Wasm config conversion count and results, including success, no remote load, marshal failure, remote fetch failure, miss remote fetch hint.
      wasm_config_conversion_durationDistributionTotal time in milliseconds istio-agent spends on converting remote load in Wasm config.
      wasm_remote_fetch_countSumnumber of Wasm remote fetches and results, including success, download failure, and checksum mismatch.
      webhook_patch_attempts_totalSumWebhook patching attempts
      webhook_patch_failures_totalSumWebhook patching total failures
      webhook_patch_retries_totalSumWebhook patching retries
      xds_cache_dependent_config_sizeLastValueCurrent size of dependent configs
      xds_cache_evictionsSumTotal number of xds cache evictions.
      xds_cache_readsSumTotal number of xds cache xdsCacheReads.
      LastValueCurrent size of xds cache