istioctl
Istio configuration command line utility for service operators to debug and diagnose their Istio mesh.
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
istioctl admin
A group of commands used to manage istiod configuration
istioctl admin [flags]
istioctl istiod [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--selector <string> | -l | label selector (default `app=istiod`) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Retrieve information about istiod configuration.
istioctl admin log
istioctl admin log
Retrieve or update logging levels of istiod components.
istioctl admin log [<pod-name>]|[-r|--revision] [--level <scope>:<level>][--stack-trace-level <scope>:<level>]|[--reset]|[--output|-o short|json|yaml] [flags]
istioctl admin l [<pod-name>]|[-r|--revision] [--level <scope>:<level>][--stack-trace-level <scope>:<level>]|[--reset]|[--output|-o short|json|yaml] [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--ctrlz_port <int> | ControlZ port (default `9876`) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--level <string> | Comma-separated list of output logging level for scopes in the format of <scope>:<level>[,<scope>:<level>,...]. Possible values for <level>: none, error, warn, info, debug (default ``) | |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--output <string> | -o | Output format: one of json|yaml|short (default `short`) |
--reset | Reset levels to default value. (info) | |
--revision <string> | -r | Control plane revision (default ``) |
--selector <string> | -l | label selector (default `app=istiod`) |
--stack-trace-level <string> | Comma-separated list of stack trace level for scopes in the format of <scope>:<stack-trace-level>[,<scope>:<stack-trace-level>,...]. Possible values for <stack-trace-level>: none, error, warn, info, debug (default ``) | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Retrieve information about istiod logging levels.
istioctl admin log
# Retrieve information about istiod logging levels on a specific control plane pod.
istioctl admin l istiod-5c868d8bdd-pmvgg
# Update levels of the specified loggers.
istioctl admin log --level ads:debug,authorization:debug
# Retrieve information about istiod logging levels for a specified revision.
istioctl admin log --revision v1
# Reset levels of all the loggers to default value (info).
istioctl admin log --reset
istioctl analyze
Analyze Istio configuration and print validation messages
istioctl analyze <file>... [flags]
Flags | Shorthand | Description |
---|---|---|
--all-namespaces | -A | Analyze all namespaces |
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--color | Default true. Disable with '=false' or set $TERM to dumb | |
--context <string> | Kubernetes configuration context (default ``) | |
--failure-threshold <Level> | The severity level of analysis at which to set a non-zero exit code. Valid values: [Info Warning Error] (default `Error`) | |
--ignore-unknown | Don't complain about un-parseable input documents, for cases where analyze should run only on k8s compliant inputs. | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--list-analyzers | -L | List the analyzers available to run. Suppresses normal execution. |
--meshConfigFile <string> | Overrides the mesh config values to use for analysis. (default ``) | |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--output <string> | -o | Output 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 | -R | Process directory arguments recursively. Useful when you want to analyze related manifests organized within the same directory. |
--revision <string> | analyze a specific revision deployed. (default `default`) | |
--suppress <stringArray> | -S | Suppress 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 | -k | Use live Kubernetes cluster for analysis. Set --use-kube=false to analyze files only. |
--verbose | -v | Enable verbose output |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Analyze the current live cluster
istioctl analyze
# Analyze the current live cluster for a specific revision
istioctl analyze --revision 1-16
# Analyze the current live cluster, simulating the effect of applying additional yaml files
istioctl analyze a.yaml b.yaml my-app-config/
# Analyze the current live cluster, simulating the effect of applying a directory of config recursively
istioctl analyze --recursive my-istio-config/
# Analyze yaml files without connecting to a live cluster
istioctl analyze --use-kube=false a.yaml b.yaml my-app-config/
# Analyze the current live cluster and suppress PodMissingProxy for pod mypod in namespace 'testing'.
istioctl analyze -S "IST0103=Pod mypod.testing"
# Analyze the current live cluster and suppress PodMissingProxy for all pods in namespace 'testing',
# and suppress MisplacedAnnotation on deployment foobar in namespace default.
istioctl analyze -S "IST0103=Pod *.testing" -S "IST0107=Deployment foobar.default"
# List available analyzers
istioctl analyze -L
istioctl authz
(authz is experimental. Use `istioctl experimental authz`)
istioctl authz [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
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'.)
istioctl bug-report [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Name of the kubeconfig Context to use. (default ``) | |
--critical-errs <stringSlice> | 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 `[]`) | |
--dir <string> | Set a specific directory for temporary artifact storage. (default ``) | |
--dry-run | Only 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 ``) | |
--exclude <stringSlice> | 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"]`) | |
--filename <string> | -f | 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-secrets | If 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> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Path to kube config. (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--output-dir <string> | Set a specific directory for output archive file. (default ``) | |
--rq-concurrency <int> | Set the concurrency limit of requests to the Kubernetes API server, defaults to 32. (default `0`) | |
--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 ``) | |
--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 bug-report version
Prints out build version information
istioctl bug-report version [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Name of the kubeconfig Context to use. (default ``) | |
--critical-errs <stringSlice> | 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 `[]`) | |
--dir <string> | Set a specific directory for temporary artifact storage. (default ``) | |
--dry-run | Only 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 ``) | |
--exclude <stringSlice> | 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"]`) | |
--filename <string> | -f | 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-secrets | If 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> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Path to kube config. (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--output <string> | -o | One of 'yaml' or 'json'. (default ``) |
--output-dir <string> | Set a specific directory for output archive file. (default ``) | |
--rq-concurrency <int> | Set the concurrency limit of requests to the Kubernetes API server, defaults to 32. (default `0`) | |
--short | -s | Use --short=false to generate full version information |
--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 ``) | |
--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.
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
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 > /usr/local/etc/bash_completion.d/istioctl
You will need to start a new shell for this setup to take effect.
istioctl completion bash
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--no-descriptions | disable completion descriptions | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
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 bash > ~/.config/fish/completions/istioctl.fish
You will need to start a new shell for this setup to take effect.
istioctl completion fish [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--no-descriptions | disable completion descriptions | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
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.
istioctl completion powershell [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--no-descriptions | disable completion descriptions | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
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)
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.
istioctl completion zsh [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--no-descriptions | disable completion descriptions | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
istioctl create-remote-secret
Create a secret with credentials to allow Istio to access remote Kubernetes apiservers
istioctl create-remote-secret [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--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 ``) | |
--auth-type <RemoteSecretAuthType> | Type of authentication to use. supported values = [bearer-token plugin] (default `bearer-token`) | |
--context <string> | Kubernetes configuration context (default ``) | |
--create-service-account | If true, the service account needed for creating the remote secret will be created if it doesn't exist. | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--manifests <string> | -d | Specify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.24.0/manifests). (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 ``) | |
--namespace <string> | -n | Kubernetes 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 ``) | |
--server <string> | 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 ``) | |
--type <SecretType> | Type of the generated secret. supported values = [remote config] (default `remote`) | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Create a secret to access cluster c0's apiserver and install it in cluster c1.
istioctl --kubeconfig=c0.yaml create-remote-secret --name c0 \
| kubectl --kubeconfig=c1.yaml apply -f -
# Delete a secret that was previously installed in c1
istioctl --kubeconfig=c0.yaml create-remote-secret --name c0 \
| kubectl --kubeconfig=c1.yaml delete -f -
# Create a secret access a remote cluster with an auth plugin
istioctl --kubeconfig=c0.yaml create-remote-secret --name c0 --auth-type=plugin --auth-plugin-name=gcp \
| kubectl --kubeconfig=c1.yaml apply -f -
istioctl dashboard
Access to Istio web UIs
istioctl dashboard [flags]
istioctl dash [flags]
istioctl d [flags]
Flags | Shorthand | Description |
---|---|---|
--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`) | |
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--browser | When --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> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--port <int> | -p | Local port to listen to (default `0`) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
istioctl dashboard controlz
Open the ControlZ web UI for a pod in the Istio control plane
istioctl dashboard controlz [<type>/]<name>[.<namespace>] [flags]
Flags | Shorthand | Description |
---|---|---|
--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`) | |
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--browser | When --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> | Kubernetes configuration context (default ``) | |
--ctrlz_port <int> | ControlZ port (default `9876`) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--port <int> | -p | Local port to listen to (default `0`) |
--selector <string> | -l | Label selector (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Open ControlZ web UI for the istiod-123-456.istio-system pod
istioctl dashboard controlz istiod-123-456.istio-system
# Open ControlZ web UI for the istiod-56dd66799-jfdvs pod in a custom namespace
istioctl dashboard controlz istiod-123-456 -n custom-ns
# Open ControlZ web UI for any Istiod pod
istioctl dashboard controlz deployment/istiod.istio-system
# with short syntax
istioctl dash controlz pilot-123-456.istio-system
istioctl d controlz pilot-123-456.istio-system
istioctl dashboard envoy
Open the Envoy admin dashboard for a sidecar
Note: envoy command is deprecated and can be replaced with proxy command, e.g. `istioctl dashboard proxy --help`
istioctl dashboard envoy [<type>/]<name>[.<namespace>] [flags]
Flags | Shorthand | Description |
---|---|---|
--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`) | |
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--browser | When --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> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--port <int> | -p | Local port to listen to (default `0`) |
--selector <string> | -l | Label selector (default ``) |
--ui-port <int> | The component dashboard UI port. (default `15000`) | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Open Envoy dashboard for the productpage-123-456.default pod
istioctl dashboard envoy productpage-123-456.default
# Open Envoy dashboard for one pod under a deployment
istioctl dashboard envoy deployment/productpage-v1
# with short syntax
istioctl dash envoy productpage-123-456.default
istioctl d envoy productpage-123-456.default
istioctl dashboard grafana
Open Istio's Grafana dashboard
istioctl dashboard grafana [flags]
Flags | Shorthand | Description |
---|---|---|
--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`) | |
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--browser | When --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> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--port <int> | -p | Local port to listen to (default `0`) |
--ui-port <int> | The component dashboard UI port. (default `3000`) | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
istioctl dashboard grafana
# with short syntax
istioctl dash grafana
istioctl d grafana
istioctl dashboard istiod-debug
Open the debug web UI for a Istio control plane pod
istioctl dashboard istiod-debug [<type>/]<name>[.<namespace>] [flags]
Flags | Shorthand | Description |
---|---|---|
--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`) | |
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--browser | When --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> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--port <int> | -p | Local port to listen to (default `0`) |
--selector <string> | -l | Label selector (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Open Istio debug web UI for the istiod-123-456.istio-system pod
istioctl dashboard istiod-debug istiod-123-456.istio-system
# Open Istio debug web UI for the istiod-56dd66799-jfdvs pod in a custom namespace
istioctl dashboard istiod-debug istiod-123-456 -n custom-ns
# Open Istio debug web UI for any Istiod pod
istioctl dashboard istiod-debug deployment/istiod.istio-system
# with short syntax
istioctl dash istiod-debug pilot-123-456.istio-system
istioctl d istiod-debug pilot-123-456.istio-system
istioctl dashboard jaeger
Open Istio's Jaeger dashboard
istioctl dashboard jaeger [flags]
Flags | Shorthand | Description |
---|---|---|
--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`) | |
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--browser | When --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> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--port <int> | -p | Local port to listen to (default `0`) |
--ui-port <int> | The component dashboard UI port. (default `16686`) | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
istioctl dashboard jaeger
# with short syntax
istioctl dash jaeger
istioctl d jaeger
istioctl dashboard kiali
Open Istio's Kiali dashboard
istioctl dashboard kiali [flags]
Flags | Shorthand | Description |
---|---|---|
--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`) | |
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--browser | When --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> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--port <int> | -p | Local port to listen to (default `0`) |
--ui-port <int> | The component dashboard UI port. (default `20001`) | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
istioctl dashboard kiali
# with short syntax
istioctl dash kiali
istioctl d kiali
istioctl dashboard prometheus
Open Istio's Prometheus dashboard
istioctl dashboard prometheus [flags]
Flags | Shorthand | Description |
---|---|---|
--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`) | |
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--browser | When --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> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--port <int> | -p | Local port to listen to (default `0`) |
--ui-port <int> | The component dashboard UI port. (default `9090`) | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
istioctl dashboard prometheus
# with short syntax
istioctl dash prometheus
istioctl d prometheus
istioctl dashboard proxy
Open the admin dashboard for a proxy, like envoy and ztunnel pods
istioctl dashboard proxy [<type>/]<name>[.<namespace>] [flags]
Flags | Shorthand | Description |
---|---|---|
--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`) | |
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--browser | When --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> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--port <int> | -p | Local port to listen to (default `0`) |
--selector <string> | -l | Label selector (default ``) |
--ui-port <int> | The component dashboard UI port. (default `15000`) | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Open envoy admin dashboard for the productpage-123-456.default pod
istioctl dashboard proxy productpage-123-456.default
# Open envoy admin dashboard for one pod under a deployment
istioctl dashboard proxy deployment/productpage-v1
# Open dashboard for the ztunnel-bwh89.istio-system pod
istioctl dashboard proxy ztunnel-bwh89.istio-system
# Open dashboard for a waypoint pod
istioctl dashboard proxy namespace-istio-waypoint-869b56b69c-7khz4
# with short syntax
istioctl dash proxy ztunnel-bwh89.istio-system
istioctl d proxy ztunnel-bwh89.istio-system
istioctl dashboard skywalking
Open the Istio dashboard in the SkyWalking UI
istioctl dashboard skywalking [flags]
Flags | Shorthand | Description |
---|---|---|
--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`) | |
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--browser | When --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> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--port <int> | -p | Local port to listen to (default `0`) |
--ui-port <int> | The component dashboard UI port. (default `8080`) | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
istioctl dashboard skywalking
# with short syntax
istioctl dash skywalking
istioctl d skywalking
istioctl dashboard zipkin
Open Istio's Zipkin dashboard
istioctl dashboard zipkin [flags]
Flags | Shorthand | Description |
---|---|---|
--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`) | |
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--browser | When --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> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--port <int> | -p | Local port to listen to (default `0`) |
--ui-port <int> | The component dashboard UI port. (default `9411`) | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
istioctl dashboard zipkin
# with short syntax
istioctl dash zipkin
istioctl d zipkin
istioctl experimental
Experimental commands that may be modified or deprecated
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
istioctl experimental authz
THIS COMMAND IS UNDER ACTIVE DEVELOPMENT AND NOT READY FOR PRODUCTION USE.
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
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.
istioctl experimental authz check [<type>/]<name>[.<namespace>] [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--file <string> | -f | The json file with Envoy config dump to be checked (default ``) |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Check AuthorizationPolicy applied to pod httpbin-88ddbcfdd-nt5jb:
istioctl x authz check httpbin-88ddbcfdd-nt5jb
# Check AuthorizationPolicy applied to one pod under a deployment
istioctl x authz check deployment/productpage-v1
# Check AuthorizationPolicy from Envoy config dump file:
istioctl x authz check -f httpbin_config_dump.json
istioctl experimental check-inject
Checks associated resources of the given resource, and running webhooks to examine whether the pod can be or will be injected or not.
istioctl experimental check-inject [<type>/]<name>[.<namespace>] [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--labels <string> | -l | Check namespace and label pairs injection status, split multiple labels by commas (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Check the injection status of a pod
istioctl experimental check-inject details-v1-fcff6c49c-kqnfk.test
# Check the injection status of a pod under a deployment
istioctl x check-inject deployment/details-v1
# Check the injection status of a pod under a deployment in namespace test
istioctl x check-inject deployment/details-v1 -n test
# Check the injection status of label pairs in a specific namespace before actual injection
istioctl x check-inject -n test -l app=helloworld,version=v1
istioctl experimental config
Configure istioctl defaults
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# list configuration parameters
istioctl experimental config list
istioctl experimental config list
List istio configurable defaults
istioctl experimental config list [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
istioctl experimental describe
Describe resource and related Istio configuration
istioctl experimental describe [flags]
istioctl experimental des [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
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.
istioctl experimental describe pod <pod> [flags]
istioctl experimental describe po <pod> [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--ignoreUnmeshed | Suppress warnings for unmeshed pods | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
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.
istioctl experimental describe service <svc> [flags]
istioctl experimental describe svc <svc> [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--ignoreUnmeshed | Suppress warnings for unmeshed pods | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
istioctl experimental describe service productpage
istioctl experimental envoy-stats
Retrieve Envoy emitted metrics for the specified pod.
istioctl experimental envoy-stats [<type>/]<name>[.<namespace>] [flags]
istioctl experimental es [<type>/]<name>[.<namespace>] [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--output <string> | -o | Output format: one of json|yaml|short|prom|prom-merged (default `short`) |
--proxy-admin-port <int> | Envoy proxy admin port (default `15000`) | |
--selector <string> | -l | Label selector (default ``) |
--type <string> | -t | Where to grab the stats: one of server|clusters (default `server`) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Retrieve Envoy emitted metrics for the specified pod.
istioctl experimental envoy-stats <pod-name[.namespace]>
# Retrieve Envoy server metrics in prometheus format
istioctl experimental envoy-stats <pod-name[.namespace]> --output prom
# Retrieve Envoy server metrics in prometheus format with custom proxy admin port
istioctl experimental envoy-stats <pod-name[.namespace]> --output prom --proxy-admin-port 15000
# Retrieve Envoy server metrics in prometheus format with merged application metrics
istioctl experimental envoy-stats <pod-name[.namespace]> --output prom-merged
# Retrieve Envoy cluster metrics
istioctl experimental envoy-stats <pod-name[.namespace]> --type clusters
istioctl experimental injector
List sidecar injector and sidecar versions
istioctl experimental injector [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
istioctl experimental injector list
istioctl experimental injector list
List sidecar injector and sidecar versions
istioctl experimental injector list [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
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.
istioctl experimental internal-debug [<type>/]<name>[.<namespace>] [flags]
Flags | Shorthand | Description |
---|---|---|
--all | Send the same request to all instances of Istiod. Only applicable for in-cluster deployment. | |
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--authority <string> | XDS Subject Alternative Name (for example istiod.istio-system.svc) (default ``) | |
--cert-dir <string> | XDS Endpoint certificate directory (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--insecure | Skip server certificate and domain verification. (NOT SECURE!) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--plaintext | Use plain-text HTTP/2 when connecting to server (no TLS). | |
--revision <string> | -r | 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 ``) | |
--xds-label <string> | Istiod pod label selector (default ``) | |
--xds-port <int> | Istiod pod port (default `15012`) |
Examples
# Retrieve sync status for all Envoys in a mesh
istioctl x internal-debug syncz
# Retrieve sync diff for a single Envoy and Istiod
istioctl x internal-debug syncz istio-egressgateway-59585c5b9c-ndc59.istio-system
# SECURITY OPTIONS
# Retrieve syncz debug information directly from the control plane, using token security
# (This is the usual way to get the debug information with an out-of-cluster control plane.)
istioctl x internal-debug syncz --xds-address istio.cloudprovider.example.com:15012
# Retrieve syncz debug information via Kubernetes config, using token security
# (This is the usual way to get the debug information with an in-cluster control plane.)
istioctl x internal-debug syncz
# Retrieve syncz debug information directly from the control plane, using RSA certificate security
# (Certificates must be obtained before this step. The --cert-dir flag lets istioctl bypass the Kubernetes API server.)
istioctl x internal-debug syncz --xds-address istio.example.com:15012 --cert-dir ~/.istio-certs
# Retrieve syncz information via XDS from specific control plane in multi-control plane in-cluster configuration
# (Select a specific control plane in an in-cluster canary Istio configuration.)
istioctl x internal-debug syncz --xds-label istio.io/rev=default
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.
istioctl experimental metrics <workload name>...
istioctl experimental m <workload name>...
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--duration <duration> | -d | Duration of query metrics, default value is 1m. (default `1m0s`) |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Retrieve workload metrics for productpage-v1 workload
istioctl experimental metrics productpage-v1
# Retrieve workload metrics for various services with custom duration
istioctl experimental metrics productpage-v1 -d 2m
# Retrieve workload metrics for various services in the different namespaces
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.
istioctl experimental precheck [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--from-version <string> | -f | check changes since the provided version (default ``) |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--output <string> | -o | Output format: one of [log json yaml] (default `log`) |
--output-threshold <Level> | The severity level of precheck at which to display messages. Valid values: [Info Warning Error] (default `Warning`) | |
--revision <string> | -r | Control plane revision (default ``) |
--skip-controlplane | skip checking the control plane | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Verify that Istio can be installed or upgraded
istioctl x precheck
# Check only a single namespace
istioctl x precheck --namespace default
# Check for behavioral changes since a specific version
istioctl x precheck --from-version 1.10
istioctl experimental proxy-status
Retrieves last sent and last acknowledged xDS sync from Istiod to each Envoy in the mesh
istioctl experimental proxy-status [<type>/]<name>[.<namespace>] [flags]
istioctl experimental ps [<type>/]<name>[.<namespace>] [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--authority <string> | XDS Subject Alternative Name (for example istiod.istio-system.svc) (default ``) | |
--cert-dir <string> | XDS Endpoint certificate directory (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--file <string> | -f | Envoy config dump JSON file (default ``) |
--insecure | Skip server certificate and domain verification. (NOT SECURE!) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--plaintext | Use plain-text HTTP/2 when connecting to server (no TLS). | |
--revision <string> | -r | 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 ``) | |
--xds-label <string> | Istiod pod label selector (default ``) | |
--xds-port <int> | Istiod pod port (default `15012`) | |
--xds-via-agents | Access Istiod via the tap service of each agent | |
--xds-via-agents-limit <xds-via-agent> | Maximum number of pods being visited by istioctl when xds-via-agent flag is true.To iterate all the agent pods without limit, set to 0 (default `100`) |
Examples
# Retrieve sync status for all Envoys in a mesh
istioctl proxy-status
# Retrieve sync status for Envoys in a specific namespace
istioctl proxy-status --namespace foo
# Retrieve sync diff for a single Envoy and Istiod
istioctl proxy-status istio-egressgateway-59585c5b9c-ndc59.istio-system
# SECURITY OPTIONS
# Retrieve proxy status information directly from the control plane, using token security
# (This is the usual way to get the proxy-status with an out-of-cluster control plane.)
istioctl ps --xds-address istio.cloudprovider.example.com:15012
# Retrieve proxy status information via Kubernetes config, using token security
# (This is the usual way to get the proxy-status with an in-cluster control plane.)
istioctl proxy-status
# Retrieve proxy status information directly from the control plane, using RSA certificate security
# (Certificates must be obtained before this step. The --cert-dir flag lets istioctl bypass the Kubernetes API server.)
istioctl ps --xds-address istio.example.com:15012 --cert-dir ~/.istio-certs
# Retrieve proxy status information via XDS from specific control plane in multi-control plane in-cluster configuration
# (Select a specific control plane in an in-cluster canary Istio configuration.)
istioctl ps --xds-label istio.io/rev=default
istioctl experimental version
Prints out build version information
istioctl experimental version [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--authority <string> | XDS Subject Alternative Name (for example istiod.istio-system.svc) (default ``) | |
--cert-dir <string> | XDS Endpoint certificate directory (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--insecure | Skip server certificate and domain verification. (NOT SECURE!) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--output <string> | -o | One of 'yaml' or 'json'. (default ``) |
--plaintext | Use plain-text HTTP/2 when connecting to server (no TLS). | |
--remote | Use --remote=false to suppress control plane check | |
--revision <string> | -r | Control plane revision (default ``) |
--short | -s | Use --short=false to generate full version information |
--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 ``) | |
--xds-label <string> | Istiod pod label selector (default ``) | |
--xds-port <int> | Istiod pod port (default `15012`) |
Examples
# Retrieve version information directly from the control plane, using token security
# (This is the usual way to get the control plane version with an out-of-cluster control plane.)
istioctl x version --xds-address istio.cloudprovider.example.com:15012
# Retrieve version information via Kubernetes config, using token security
# (This is the usual way to get the control plane version with an in-cluster control plane.)
istioctl x version
# Retrieve version information directly from the control plane, using RSA certificate security
# (Certificates must be obtained before this step. The --cert-dir flag lets istioctl bypass the Kubernetes API server.)
istioctl x version --xds-address istio.example.com:15012 --cert-dir ~/.istio-certs
# Retrieve version information via XDS from specific control plane in multi-control plane in-cluster configuration
# (Select a specific control plane in an in-cluster canary Istio configuration.)
istioctl x version --xds-label istio.io/rev=default
istioctl experimental workload
Commands to assist in configuring and deploying workloads running on VMs and other non-Kubernetes environments
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# workload group yaml generation
istioctl x workload group create
# workload entry configuration generation
istioctl x workload entry configure
istioctl experimental workload entry
Commands dealing with WorkloadEntry resources
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
istioctl x workload 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.
istioctl experimental workload entry configure [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--autoregister | Creates a WorkloadEntry upon connection to istiod (if enabled in pilot). | |
--capture-dns | Enables the capture of outgoing DNS packets on port 53, redirecting to istio-agent | |
--clusterID <string> | The ID used to identify the cluster (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--externalIP <string> | External IP address of the workload (default ``) | |
--file <string> | -f | filename of the WorkloadGroup artifact. Leave this field empty if using the API server (default ``) |
--ingressIP <string> | IP address of the ingress gateway (default ``) | |
--ingressService <string> | Name of the Service to be used as the ingress gateway, in the format <service>.<namespace>. If no namespace is provided, the default istio-system namespace will be used. (default `istio-eastwestgateway`) | |
--internalIP <string> | Internal IP address of the workload (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--name <string> | The name of the workload group (default ``) | |
--namespace <string> | -n | The namespace that the workload instances belong to (default ``) |
--output <string> | -o | Output directory for generated files (default ``) |
--revision <string> | -r | Control plane revision (default ``) |
--tokenDuration <int> | The token duration in seconds (default: 1 hour) (default `3600`) | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# configure example using a local WorkloadGroup artifact
istioctl x workload entry configure -f workloadgroup.yaml -o config
# configure example using the API server
istioctl x workload entry configure --name foo --namespace bar -o config
istioctl experimental workload group
Commands dealing with WorkloadGroup resources
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
istioctl x workload 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.
istioctl experimental workload group create [flags]
Flags | Shorthand | Description |
---|---|---|
--annotations <stringSlice> | -a | The annotations to apply to the workload instances (default `[]`) |
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--labels <stringSlice> | -l | The labels to apply to the workload instances; e.g. -l env=prod,vers=2 (default `[]`) |
--name <string> | The name of the workload group (default ``) | |
--namespace <string> | -n | The namespace that the workload instances will belong to (default ``) |
--ports <stringSlice> | -p | The incoming ports exposed by the workload instance (default `[]`) |
--serviceAccount <string> | -s | The 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
istioctl x workload group 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.
istioctl install [flags]
istioctl apply [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--charts <string> | Deprecated, use --manifests instead. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--dry-run | Console/log output only, make no changes. | |
--filename <stringSlice> | -f | 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 `[]`) |
--force | Proceed even with validation errors. | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--manifests <string> | -d | Specify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.24.0/manifests). (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--readiness-timeout <duration> | Maximum time to wait for Istio resources in each component to be ready. (default `5m0s`) | |
--revision <string> | -r | Target control plane revision for the command. (default ``) |
--set <stringArray> | -s | 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.24/docs/reference/config/istio.operator.v1alpha1/#IstioOperatorSpec (default `[]`) |
--skip-confirmation | -y | 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. |
--verify | Verify 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
# Apply a default Istio installation
istioctl install
# Enable Tracing
istioctl install --set meshConfig.enableTracing=true
# Generate the demo profile and don't wait for confirmation
istioctl install --set profile=demo --skip-confirmation
# To override a setting that includes dots, escape them with a backslash (\). Your shell may require enclosing quotes.
istioctl install --set "values.sidecarInjectorWebhook.injectedAnnotations.container\.apparmor\.security\.beta\.kubernetes\.io/istio-proxy=runtime/default"
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.
istioctl kube-inject [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--authority <string> | XDS Subject Alternative Name (for example istiod.istio-system.svc) (default ``) | |
--cert-dir <string> | XDS Endpoint certificate directory (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--filename <string> | -f | Input Kubernetes resource filename (default ``) |
--injectConfigFile <string> | Injection configuration filename. Cannot be used with --injectConfigMapName (default ``) | |
--insecure | Skip server certificate and domain verification. (NOT SECURE!) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--meshConfigFile <string> | 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> | -n | Kubernetes 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 ``) | |
--output <string> | -o | Modified output Kubernetes resource filename (default ``) |
--plaintext | Use plain-text HTTP/2 when connecting to server (no TLS). | |
--revision <string> | -r | Control plane revision (default ``) |
--timeout <duration> | The duration to wait before failing (default `30s`) | |
--valuesFile <string> | 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 ``) | |
--xds-label <string> | Istiod pod label selector (default ``) | |
--xds-port <int> | Istiod pod port (default `15012`) |
Examples
# Update resources on the fly before applying.
kubectl apply -f <(istioctl kube-inject -f <resource.yaml>)
# Create a persistent version of the deployment with Istio sidecar injected.
istioctl kube-inject -f deployment.yaml -o deployment-injected.yaml
# Update an existing deployment.
kubectl get deployment -o yaml | istioctl kube-inject -f - | kubectl apply -f -
# Capture cluster configuration for later use with kube-inject
kubectl -n istio-system get cm istio-sidecar-injector -o jsonpath="{.data.config}" > /tmp/inj-template.tmpl
kubectl -n istio-system get cm istio -o jsonpath="{.data.mesh}" > /tmp/mesh.yaml
kubectl -n istio-system get cm istio-sidecar-injector -o jsonpath="{.data.values}" > /tmp/values.json
# Use kube-inject based on captured configuration
istioctl kube-inject -f samples/bookinfo/platform/kube/bookinfo.yaml \
--injectConfigFile /tmp/inj-template.tmpl \
--meshConfigFile /tmp/mesh.yaml \
--valuesFile /tmp/values.json
istioctl manifest
The manifest command generates and diffs Istio manifests.
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--dry-run | Console/log output only, make no changes. | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
istioctl manifest generate
The generate subcommand generates an Istio install manifest and outputs to the console by default.
istioctl manifest generate [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--charts <string> | Deprecated, use --manifests instead. (default ``) | |
--cluster-specific | If enabled, the current cluster will be checked for cluster-specific setting detection. | |
--context <string> | Kubernetes configuration context (default ``) | |
--dry-run | Console/log output only, make no changes. | |
--filename <stringSlice> | -f | 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 `[]`) |
--force | Proceed even with validation errors. | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--manifests <string> | -d | Specify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.24.0/manifests). (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--revision <string> | -r | Target control plane revision for the command. (default ``) |
--set <stringArray> | -s | 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.24/docs/reference/config/istio.operator.v1alpha1/#IstioOperatorSpec (default `[]`) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Generate a default Istio installation
istioctl manifest generate
# Enable Tracing
istioctl manifest generate --set meshConfig.enableTracing=true
# Generate the demo profile
istioctl manifest generate --set profile=demo
# To override a setting that includes dots, escape them with a backslash (\). Your shell may require enclosing quotes.
istioctl manifest generate --set "values.sidecarInjectorWebhook.injectedAnnotations.container\.apparmor\.security\.beta\.kubernetes\.io/istio-proxy=runtime/default"
istioctl manifest install
The install command generates an Istio install manifest and applies it to a cluster.
istioctl manifest install [flags]
istioctl manifest apply [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--charts <string> | Deprecated, use --manifests instead. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--dry-run | Console/log output only, make no changes. | |
--filename <stringSlice> | -f | 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 `[]`) |
--force | Proceed even with validation errors. | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--manifests <string> | -d | Specify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.24.0/manifests). (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--readiness-timeout <duration> | Maximum time to wait for Istio resources in each component to be ready. (default `5m0s`) | |
--revision <string> | -r | Target control plane revision for the command. (default ``) |
--set <stringArray> | -s | 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.24/docs/reference/config/istio.operator.v1alpha1/#IstioOperatorSpec (default `[]`) |
--skip-confirmation | -y | 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. |
--verify | Verify 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
# Apply a default Istio installation
istioctl install
# Enable Tracing
istioctl install --set meshConfig.enableTracing=true
# Generate the demo profile and don't wait for confirmation
istioctl install --set profile=demo --skip-confirmation
# To override a setting that includes dots, escape them with a backslash (\). Your shell may require enclosing quotes.
istioctl install --set "values.sidecarInjectorWebhook.injectedAnnotations.container\.apparmor\.security\.beta\.kubernetes\.io/istio-proxy=runtime/default"
istioctl options
Displays istioctl global options
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
istioctl proxy-config
A group of commands used to retrieve information about proxy configuration from the Envoy config dump
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--output <string> | -o | Output format: one of json|yaml|short (default `short`) |
--proxy-admin-port <int> | Envoy proxy admin port (default `15000`) | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Retrieve information about proxy configuration from an Envoy instance.
istioctl proxy-config <clusters|listeners|routes|endpoints|ecds|bootstrap|log|secret> <pod-name[.namespace]>
istioctl proxy-config all
Retrieve information about all configuration for the Envoy instance in the specified pod.
istioctl proxy-config all [<type>/]<name>[.<namespace>] [flags]
istioctl proxy-config a [<type>/]<name>[.<namespace>] [flags]
Flags | Shorthand | Description |
---|---|---|
--address <string> | Filter listeners by address field (default ``) | |
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--direction <string> | Filter clusters by Direction field (default ``) | |
--file <string> | -f | Envoy config dump file (default ``) |
--fqdn <string> | Filter clusters by substring of Service FQDN field (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--name <string> | Filter routes by route name field (default ``) | |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--output <string> | -o | Output format: one of json|yaml|short (default `short`) |
--port <int> | Filter clusters and listeners by Port field (default `0`) | |
--proxy-admin-port <int> | Envoy proxy admin port (default `15000`) | |
--subset <string> | Filter clusters by substring of Subset field (default ``) | |
--type <string> | Filter listeners by type field (default ``) | |
--verbose | Output more information | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Retrieve summary about all configuration for a given pod from Envoy.
istioctl proxy-config all <pod-name[.namespace]>
# Retrieve summary about all configuration for a pod under a deployment from Envoy.
istioctl proxy-config all deployment/<deployment-name[.namespace]>
# Retrieve full cluster dump as JSON
istioctl proxy-config all <pod-name[.namespace]> -o json
# Retrieve full cluster dump with short syntax
istioctl pc a <pod-name[.namespace]>
# Retrieve cluster summary without using Kubernetes API
ssh <user@hostname> 'curl localhost:15000/config_dump' > envoy-config.json
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.
istioctl proxy-config bootstrap [<type>/]<name>[.<namespace>] [flags]
istioctl proxy-config b [<type>/]<name>[.<namespace>] [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--file <string> | -f | Envoy config dump JSON file (default ``) |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--output <string> | -o | Output format: one of json|yaml|short (default `json`) |
--proxy-admin-port <int> | Envoy proxy admin port (default `15000`) | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Retrieve full bootstrap configuration for a given pod from Envoy.
istioctl proxy-config bootstrap <pod-name[.namespace]>
# Retrieve full bootstrap configuration for a pod under a deployment from Envoy.
istioctl proxy-config bootstrap deployment/<deployment-name[.namespace]>
# Retrieve full bootstrap without using Kubernetes API
ssh <user@hostname> 'curl localhost:15000/config_dump' > envoy-config.json
istioctl proxy-config bootstrap --file envoy-config.json
# Show a human-readable Istio and Envoy version summary
istioctl proxy-config bootstrap <pod-name[.namespace]> -o short
istioctl proxy-config cluster
Retrieve information about cluster configuration for the Envoy instance in the specified pod.
istioctl proxy-config cluster [<type>/]<name>[.<namespace>] [flags]
istioctl proxy-config clusters [<type>/]<name>[.<namespace>] [flags]
istioctl proxy-config c [<type>/]<name>[.<namespace>] [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--direction <string> | Filter clusters by Direction field (default ``) | |
--file <string> | -f | Envoy config dump JSON file (default ``) |
--fqdn <string> | Filter clusters by substring of Service FQDN field (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--output <string> | -o | Output format: one of json|yaml|short (default `short`) |
--port <int> | Filter clusters by Port field (default `0`) | |
--proxy-admin-port <int> | Envoy proxy admin port (default `15000`) | |
--subset <string> | Filter clusters by substring of Subset field (default ``) | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Retrieve summary about cluster configuration for a given pod from Envoy.
istioctl proxy-config clusters <pod-name[.namespace]>
# Retrieve summary about cluster configuration for a pod under a deployment from Envoy.
istioctl proxy-config clusters deployment/<deployment-name[.namespace]>
# Retrieve cluster summary for clusters with port 9080.
istioctl proxy-config clusters <pod-name[.namespace]> --port 9080
# Retrieve full cluster dump for clusters that are inbound with a FQDN of details.default.svc.cluster.local.
istioctl proxy-config clusters <pod-name[.namespace]> --fqdn details.default.svc.cluster.local --direction inbound -o json
# Retrieve cluster summary without using Kubernetes API
ssh <user@hostname> 'curl localhost:15000/config_dump' > envoy-config.json
istioctl proxy-config clusters --file envoy-config.json
istioctl proxy-config ecds
Retrieve information about typed extension configuration for the Envoy instance in the specified pod.
istioctl proxy-config ecds [<type>/]<name>[.<namespace>] [flags]
istioctl proxy-config ec [<type>/]<name>[.<namespace>] [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--file <string> | -f | Envoy config dump JSON file (default ``) |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--output <string> | -o | Output format: one of json|yaml|short (default `short`) |
--proxy-admin-port <int> | Envoy proxy admin port (default `15000`) | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Retrieve full typed extension configuration for a given pod from Envoy.
istioctl proxy-config ecds <pod-name[.namespace]>
# Retrieve full typed extension configuration for a pod under a deployment from Envoy.
istioctl proxy-config ecds deployment/<deployment-name[.namespace]>
# Retrieve endpoint summary without using Kubernetes API
ssh <user@hostname> 'curl localhost:15000/config_dump' > envoy-config.json
istioctl proxy-config ecds --file envoy-config.json
istioctl proxy-config endpoint
Retrieve information about endpoint configuration for the Envoy instance in the specified pod.
istioctl proxy-config endpoint [<type>/]<name>[.<namespace>] [flags]
istioctl proxy-config endpoints [<type>/]<name>[.<namespace>] [flags]
istioctl proxy-config ep [<type>/]<name>[.<namespace>] [flags]
Flags | Shorthand | Description |
---|---|---|
--address <string> | Filter endpoints by address field (default ``) | |
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--cluster <string> | Filter endpoints by cluster name field (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--file <string> | -f | Envoy config dump JSON file (default ``) |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--output <string> | -o | Output format: one of json|yaml|short (default `short`) |
--port <int> | Filter endpoints by Port field (default `0`) | |
--proxy-admin-port <int> | Envoy proxy admin port (default `15000`) | |
--status <string> | Filter endpoints by status field (default ``) | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Retrieve full endpoint configuration for a given pod from Envoy.
istioctl proxy-config endpoint <pod-name[.namespace]>
# Retrieve full endpoint configuration for a pod under a deployment from Envoy.
istioctl proxy-config endpoint deployment/<deployment-name[.namespace]>
# Retrieve endpoint summary for endpoint with port 9080.
istioctl proxy-config endpoint <pod-name[.namespace]> --port 9080
# Retrieve full endpoint with a address (172.17.0.2).
istioctl proxy-config endpoint <pod-name[.namespace]> --address 172.17.0.2 -o json
# Retrieve full endpoint with a cluster name (outbound|9411||zipkin.istio-system.svc.cluster.local).
istioctl proxy-config endpoint <pod-name[.namespace]> --cluster "outbound|9411||zipkin.istio-system.svc.cluster.local" -o json
# Retrieve full endpoint with the status (healthy).
istioctl proxy-config endpoint <pod-name[.namespace]> --status healthy -ojson
# Retrieve endpoint summary without using Kubernetes API
ssh <user@hostname> 'curl localhost:15000/clusters?format=json' > envoy-clusters.json
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.
istioctl proxy-config listener [<type>/]<name>[.<namespace>] [flags]
istioctl proxy-config listeners [<type>/]<name>[.<namespace>] [flags]
istioctl proxy-config l [<type>/]<name>[.<namespace>] [flags]
Flags | Shorthand | Description |
---|---|---|
--address <string> | Filter listeners by address field (default ``) | |
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--file <string> | -f | Envoy config dump JSON file (default ``) |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--output <string> | -o | Output format: one of json|yaml|short (default `short`) |
--port <int> | Filter listeners by Port field (default `0`) | |
--proxy-admin-port <int> | Envoy proxy admin port (default `15000`) | |
--type <string> | Filter listeners by type field (default ``) | |
--verbose | Output more information | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Retrieve summary about listener configuration for a given pod from Envoy.
istioctl proxy-config listeners <pod-name[.namespace]>
# Retrieve summary about listener configuration a pod under a deployment from Envoy.
istioctl proxy-config deployment/<deployment-name[.namespace]>
# Retrieve listener summary for listeners with port 9080.
istioctl proxy-config listeners <pod-name[.namespace]> --port 9080
# Retrieve full listener dump for HTTP listeners with a wildcard address (0.0.0.0).
istioctl proxy-config listeners <pod-name[.namespace]> --type HTTP --address 0.0.0.0 -o json
# Retrieve listener summary without using Kubernetes API
ssh <user@hostname> 'curl localhost:15000/config_dump' > envoy-config.json
istioctl proxy-config listeners --file envoy-config.json
istioctl proxy-config log
Retrieve information about logging levels of the Envoy instance in the specified pod, and update optionally
istioctl proxy-config log [<type>/]<name>[.<namespace>] [flags]
istioctl proxy-config o [<type>/]<name>[.<namespace>] [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--level <string> | Comma-separated minimum per-logger level of messages to output, in the form of [<logger>:]<level>,[<logger>:]<level>,... or <level> to change all active loggers, where logger components can be listed by running "istioctl proxy-config log <pod-name[.namespace]>"or referred from https://github.com/envoyproxy/envoy/blob/main/source/common/common/logger.h, and level can be one of [trace, debug, info, warning, error, critical, off] (default ``) | |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--output <string> | -o | Output format: one of json|yaml|short (default `short`) |
--proxy-admin-port <int> | Envoy proxy admin port (default `15000`) | |
--reset | -r | Reset levels to default value (warning). |
--selector <string> | -l | Label selector (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Retrieve information about logging levels for a given pod from Envoy.
istioctl proxy-config log <pod-name[.namespace]>
# Update levels of the all loggers
istioctl proxy-config log <pod-name[.namespace]> --level none
# Update levels of the specified loggers.
istioctl proxy-config log <pod-name[.namespace]> --level http:debug,redis:debug
# Reset levels of all the loggers to default value (warning).
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.
istioctl proxy-config rootca-compare [pod/]<name-1>[.<namespace-1>] [pod/]<name-2>[.<namespace-2>] [flags]
istioctl proxy-config rc [pod/]<name-1>[.<namespace-1>] [pod/]<name-2>[.<namespace-2>] [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--output <string> | -o | Output format: one of json|yaml|short (default `short`) |
--proxy-admin-port <int> | Envoy proxy admin port (default `15000`) | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Compare ROOTCA values for given 2 pods to check the connectivity between them.
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.
istioctl proxy-config route [<type>/]<name>[.<namespace>] [flags]
istioctl proxy-config routes [<type>/]<name>[.<namespace>] [flags]
istioctl proxy-config r [<type>/]<name>[.<namespace>] [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--file <string> | -f | Envoy config dump JSON file (default ``) |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--name <string> | Filter listeners by route name field (default ``) | |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--output <string> | -o | Output format: one of json|yaml|short (default `short`) |
--proxy-admin-port <int> | Envoy proxy admin port (default `15000`) | |
--verbose | Output more information | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Retrieve summary about route configuration for a given pod from Envoy.
istioctl proxy-config routes <pod-name[.namespace]>
# Retrieve summary about route configuration for a pod under a deployment from Envoy.
istioctl proxy-config routes deployment/<deployment-name[.namespace]>
# Retrieve route summary for route 9080.
istioctl proxy-config route <pod-name[.namespace]> --name 9080
# Retrieve full route dump for route 9080
istioctl proxy-config route <pod-name[.namespace]> --name 9080 -o json
# Retrieve route summary without using Kubernetes API
ssh <user@hostname> 'curl localhost:15000/config_dump' > envoy-config.json
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.
istioctl proxy-config secret [<type>/]<name>[.<namespace>] [flags]
istioctl proxy-config secrets [<type>/]<name>[.<namespace>] [flags]
istioctl proxy-config s [<type>/]<name>[.<namespace>] [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--file <string> | -f | Envoy config dump JSON file (default ``) |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--output <string> | -o | Output format: one of json|yaml|short (default `short`) |
--proxy-admin-port <int> | Envoy proxy admin port (default `15000`) | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Retrieve full secret configuration for a given pod from Envoy.
istioctl proxy-config secret <pod-name[.namespace]>
# Retrieve full secret configuration for a pod under a deployment from Envoy.
istioctl proxy-config secret deployment/<deployment-name[.namespace]>
# Retrieve full bootstrap without using Kubernetes API
ssh <user@hostname> 'curl localhost:15000/config_dump' > envoy-config.json
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
istioctl proxy-status [<type>/]<name>[.<namespace>] [flags]
istioctl ps [<type>/]<name>[.<namespace>] [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--authority <string> | XDS Subject Alternative Name (for example istiod.istio-system.svc) (default ``) | |
--cert-dir <string> | XDS Endpoint certificate directory (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--file <string> | -f | Envoy config dump JSON file (default ``) |
--insecure | Skip server certificate and domain verification. (NOT SECURE!) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--plaintext | Use plain-text HTTP/2 when connecting to server (no TLS). | |
--revision <string> | -r | 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 ``) | |
--xds-label <string> | Istiod pod label selector (default ``) | |
--xds-port <int> | Istiod pod port (default `15012`) |
Examples
# Retrieve sync status for all Envoys in a mesh
istioctl proxy-status
# Retrieve sync status for Envoys in a specific namespace
istioctl proxy-status --namespace foo
# Retrieve sync diff for a single Envoy and Istiod
istioctl proxy-status istio-egressgateway-59585c5b9c-ndc59.istio-system
# SECURITY OPTIONS
# Retrieve proxy status information directly from the control plane, using token security
# (This is the usual way to get the proxy-status with an out-of-cluster control plane.)
istioctl ps --xds-address istio.cloudprovider.example.com:15012
# Retrieve proxy status information via Kubernetes config, using token security
# (This is the usual way to get the proxy-status with an in-cluster control plane.)
istioctl proxy-status
# Retrieve proxy status information directly from the control plane, using RSA certificate security
# (Certificates must be obtained before this step. The --cert-dir flag lets istioctl bypass the Kubernetes API server.)
istioctl ps --xds-address istio.example.com:15012 --cert-dir ~/.istio-certs
# Retrieve proxy status information via XDS from specific control plane in multi-control plane in-cluster configuration
# (Select a specific control plane in an in-cluster canary Istio configuration.)
istioctl ps --xds-label istio.io/rev=default
istioctl remote-clusters
Lists the remote clusters each istiod instance is connected to.
istioctl remote-clusters [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--revision <string> | -r | Control plane revision (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
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.
istioctl tag [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
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.
istioctl tag generate <revision-tag> [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--auto-inject-namespaces | If set to true, the sidecars should be automatically injected into all namespaces by default | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--manifests <string> | -d | Specify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.24.0/manifests). (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--overwrite | If true, allow revision tags to be overwritten, otherwise reject revision tag updates that overwrite existing revision tags. | |
--revision <string> | -r | Control plane revision to reference from a given revision tag (default ``) |
--skip-confirmation | -y | 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. |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) | |
--webhook-name <string> | Name to use for a revision tag's mutating webhook configuration. (default ``) |
Examples
# Create a revision tag from the "1-8-0" revision
istioctl tag generate prod --revision 1-8-0 > tag.yaml
# Apply the tag to cluster
kubectl apply -f tag.yaml
# Point namespace "test-ns" at the revision pointed to by the "prod" revision tag
kubectl label ns test-ns istio.io/rev=prod
# Rollout namespace "test-ns" to update workloads to the "1-8-0" revision
kubectl rollout restart deployments -n test-ns
istioctl tag list
List existing revision tags
istioctl tag list [flags]
istioctl tag show [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--output <string> | -o | Output format for tag description (available formats: table,json,yaml) (default `table`) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
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.
istioctl tag remove <revision-tag> [flags]
istioctl tag delete <revision-tag> [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--skip-confirmation | -y | 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. |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Remove the revision tag "prod"
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.
istioctl tag set <revision-tag> [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--auto-inject-namespaces | If set to true, the sidecars should be automatically injected into all namespaces by default | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--manifests <string> | -d | Specify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.24.0/manifests). (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--overwrite | If true, allow revision tags to be overwritten, otherwise reject revision tag updates that overwrite existing revision tags. | |
--revision <string> | -r | Control plane revision to reference from a given revision tag (default ``) |
--skip-confirmation | -y | 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. |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) | |
--webhook-name <string> | Name to use for a revision tag's mutating webhook configuration. (default ``) |
Examples
# Create a revision tag from the "1-8-0" revision
istioctl tag set prod --revision 1-8-0
# Point namespace "test-ns" at the revision pointed to by the "prod" revision tag
kubectl label ns test-ns istio.io/rev=prod
# Change the revision tag to reference the "1-8-1" revision
istioctl tag set prod --revision 1-8-1 --overwrite
# Make revision "1-8-1" the default revision, both resulting in that revision handling injection for "istio-injection=enabled"
# and validating resources cluster-wide
istioctl tag set default --revision 1-8-1
# Rollout namespace "test-ns" to update workloads to the "1-8-1" revision
kubectl rollout restart deployments -n test-ns
istioctl uninstall
The uninstall command uninstalls Istio from a cluster
istioctl uninstall [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--dry-run | Console/log output only, make no changes. | |
--filename <string> | -f | The filename of the IstioOperator CR. (default ``) |
--force | Proceed even with validation errors. | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--manifests <string> | -d | Specify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.24.0/manifests). (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--purge | Delete all Istio related sources for all versions | |
--revision <string> | -r | Target control plane revision for the command. (default ``) |
--set <stringArray> | -s | 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.24/docs/reference/config/istio.operator.v1alpha1/#IstioOperatorSpec (default `[]`) |
--skip-confirmation | -y | 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. |
--verbose | -v | Verbose output. |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Uninstall a single control plane by revision
istioctl uninstall --revision foo
# Uninstall a single control plane by iop file
istioctl uninstall -f iop.yaml
# Uninstall all control planes and shared resources
istioctl uninstall --purge
istioctl upgrade
The upgrade command is an alias for the install command
istioctl upgrade [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--charts <string> | Deprecated, use --manifests instead. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--dry-run | Console/log output only, make no changes. | |
--filename <stringSlice> | -f | 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 `[]`) |
--force | Proceed even with validation errors. | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--manifests <string> | -d | Specify a path to a directory of charts and profiles (e.g. ~/Downloads/istio-1.24.0/manifests). (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--readiness-timeout <duration> | Maximum time to wait for Istio resources in each component to be ready. (default `5m0s`) | |
--revision <string> | -r | Target control plane revision for the command. (default ``) |
--set <stringArray> | -s | 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.24/docs/reference/config/istio.operator.v1alpha1/#IstioOperatorSpec (default `[]`) |
--skip-confirmation | -y | 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. |
--verify | Verify 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`) |
istioctl validate
Validate Istio policy and rules files
istioctl validate -f FILENAME [options] [flags]
istioctl v -f FILENAME [options] [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--filename <stringSlice> | -f | Inputs of files to validate (default `[]`) |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Validate bookinfo-gateway.yaml
istioctl validate -f samples/bookinfo/networking/bookinfo-gateway.yaml
# Validate bookinfo-gateway.yaml with shorthand syntax
istioctl v -f samples/bookinfo/networking/bookinfo-gateway.yaml
# Validate all yaml files under samples/bookinfo/networking directory
istioctl validate -f samples/bookinfo/networking
# Validate current deployments under 'default' namespace within the cluster
kubectl get deployments -o yaml | istioctl validate -f -
# Validate current services under 'default' namespace within the cluster
kubectl get services -o yaml | istioctl validate -f -
# Also see the related command 'istioctl analyze'
istioctl analyze samples/bookinfo/networking/bookinfo-gateway.yaml
istioctl version
Prints out build version information
istioctl version [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--output <string> | -o | One of 'yaml' or 'json'. (default ``) |
--remote | Use --remote=false to suppress control plane check | |
--revision <string> | -r | Control plane revision (default ``) |
--short | -s | Use --short=false to generate full version information |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
istioctl waypoint
A group of commands used to manage waypoint configuration
istioctl waypoint [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--name <string> | name of the waypoint (default `waypoint`) | |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Apply a waypoint to the current namespace
istioctl waypoint apply
# Generate a waypoint as yaml
istioctl waypoint generate --namespace default
# List all waypoints in a specific namespace
istioctl waypoint list --namespace default
istioctl waypoint apply
Apply a waypoint configuration to the cluster
istioctl waypoint apply [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--enroll-namespace | If set, the namespace will be labeled with the waypoint name | |
--for <string> | Specify the traffic type [all none service workload] for the waypoint (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--name <string> | name of the waypoint (default `waypoint`) | |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--overwrite | Overwrite the existing Waypoint used by the namespace | |
--revision <string> | -r | The revision to label the waypoint with (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) | |
--wait | -w | Wait for the waypoint to be ready |
Examples
# Apply a waypoint to the current namespace
istioctl waypoint apply
# Apply a waypoint to a specific namespace and wait for it to be ready
istioctl waypoint apply --namespace default --wait
istioctl waypoint delete
Delete a waypoint configuration from the cluster
istioctl waypoint delete [flags]
Flags | Shorthand | Description |
---|---|---|
--all | Delete all waypoints in the namespace | |
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--name <string> | name of the waypoint (default `waypoint`) | |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Delete a waypoint from the default namespace
istioctl waypoint delete
# Delete a waypoint by name, which can obtain from istioctl waypoint list
istioctl waypoint delete waypoint-name --namespace default
# Delete several waypoints by name
istioctl waypoint delete waypoint-name1 waypoint-name2 --namespace default
# Delete all waypoints in a specific namespace
istioctl waypoint delete --all --namespace default
istioctl waypoint generate
Generate a waypoint configuration as YAML
istioctl waypoint generate [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--for <string> | Specify the traffic type [all none service workload] for the waypoint (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--name <string> | name of the waypoint (default `waypoint`) | |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--revision <string> | -r | The revision to label the waypoint with (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Generate a waypoint as yaml
istioctl waypoint generate --namespace default
istioctl waypoint list
List managed waypoint configurations in the cluster
istioctl waypoint list [flags]
Flags | Shorthand | Description |
---|---|---|
--all-namespaces | -A | List all waypoints in all namespaces |
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--name <string> | name of the waypoint (default `waypoint`) | |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# List all waypoints in a specific namespace
istioctl waypoint list --namespace default
# List all waypoints in the cluster
istioctl waypoint list -A
istioctl waypoint status
Show the status of waypoints for the namespace provided or default namespace if none is provided
istioctl waypoint status [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--name <string> | name of the waypoint (default `waypoint`) | |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Show the status of the waypoint in the default namespace
istioctl waypoint status
# Show the status of the waypoint in a specific namespace
istioctl waypoint status --namespace default
istioctl ztunnel-config
A group of commands used to update or retrieve Ztunnel configuration from a Ztunnel instance.
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Retrieve summary about workload configuration
istioctl ztunnel-config workload
# Retrieve summary about certificates
istioctl ztunnel-config certificates
istioctl ztunnel-config all
Retrieve information about all configuration for the Ztunnel instance.
istioctl ztunnel-config all [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--file <string> | -f | Ztunnel config dump JSON file (default ``) |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--node <string> | Filter workloads by node field (default ``) | |
--output <string> | -o | Output format: one of json|yaml|short (default `short`) |
--proxy-admin-port <int> | Ztunnel proxy admin port (default `15000`) | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Retrieve summary about all configuration for a randomly chosen ztunnel.
istioctl ztunnel-config all
# Retrieve full configuration dump of workloads for a given Ztunnel instance.
istioctl ztunnel-config all <ztunnel-name[.namespace]> -o json
istioctl ztunnel-config certificate
Retrieve information about certificates for the Ztunnel instance.
istioctl ztunnel-config certificate [flags]
istioctl ztunnel-config certificates [flags]
istioctl ztunnel-config certs [flags]
istioctl ztunnel-config cert [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--file <string> | -f | Ztunnel config dump JSON file (default ``) |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--node <string> | Filter workloads by node field (default ``) | |
--output <string> | -o | Output format: one of json|yaml|short (default `short`) |
--proxy-admin-port <int> | Ztunnel proxy admin port (default `15000`) | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Retrieve summary about workload configuration for a randomly chosen ztunnel.
istioctl ztunnel-config certificates
# Retrieve full certificate dump of workloads for a given Ztunnel instance.
istioctl ztunnel-config certificates <ztunnel-name[.namespace]> -o json
istioctl ztunnel-config log
Retrieve information about logging levels of the Ztunnel instance in the specified pod, and update optionally.
istioctl ztunnel-config log [<type>/]<name>[.<namespace>] [flags]
istioctl ztunnel-config o [<type>/]<name>[.<namespace>] [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--file <string> | -f | Ztunnel config dump JSON file (default ``) |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--level <string> | Comma-separated minimum per-logger level of messages to output, in the form of [<logger>:]<level>,[<logger>:]<level>,... or <level> to change all active loggers, where logger components can be listed by running "istioctl ztunnel-config log <pod-name[.namespace]>", and level can be one of [trace, debug, info, warning, error, critical, off] (default ``) | |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--node <string> | Filter workloads by node field (default ``) | |
--output <string> | -o | Output format: one of json|yaml|short (default `short`) |
--proxy-admin-port <int> | Ztunnel proxy admin port (default `15000`) | |
--reset | -r | Reset levels to default value (warning). |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Retrieve information about logging levels from all Ztunnel pods
istioctl ztunnel-config log
# Update levels of the all loggers for a specific Ztunnel pod
istioctl ztunnel-config log <pod-name[.namespace]> --level off
# Update levels of the specified loggers for all Ztunnl pods
istioctl ztunnel-config log --level access:debug,info
# Reset levels of all the loggers to default value (warning) for a specific Ztunnel pod.
istioctl ztunnel-config log <pod-name[.namespace]> -r
istioctl ztunnel-config policy
Retrieve information about policies for the Ztunnel instance.
istioctl ztunnel-config policy [flags]
istioctl ztunnel-config policies [flags]
istioctl ztunnel-config p [flags]
istioctl ztunnel-config pol [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--file <string> | -f | Ztunnel config dump JSON file (default ``) |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--node <string> | Filter workloads by node field (default ``) | |
--output <string> | -o | Output format: one of json|yaml|short (default `short`) |
--policy-namespace <string> | Filter policies by namespace field (default ``) | |
--proxy-admin-port <int> | Ztunnel proxy admin port (default `15000`) | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Retrieve summary about policy configuration for a randomly chosen ztunnel.
istioctl ztunnel-config policies
# Retrieve full policy dump of workloads for a given Ztunnel instance.
istioctl ztunnel-config policies <ztunnel-name[.namespace]> -o json
istioctl ztunnel-config service
Retrieve information about services for the Ztunnel instance.
istioctl ztunnel-config service [flags]
istioctl ztunnel-config services [flags]
istioctl ztunnel-config s [flags]
istioctl ztunnel-config svc [flags]
Flags | Shorthand | Description |
---|---|---|
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--file <string> | -f | Ztunnel config dump JSON file (default ``) |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--node <string> | Filter workloads by node field (default ``) | |
--output <string> | -o | Output format: one of json|yaml|short (default `short`) |
--proxy-admin-port <int> | Ztunnel proxy admin port (default `15000`) | |
--service-namespace <string> | Filter services by namespace field (default ``) | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) |
Examples
# Retrieve summary about services configuration for a randomly chosen ztunnel.
istioctl ztunnel-config services
# Retrieve full services dump of workloads for a given Ztunnel instance.
istioctl ztunnel-config services <ztunnel-name[.namespace]> -o json
istioctl ztunnel-config workload
Retrieve information about workload configuration for the Ztunnel instance.
istioctl ztunnel-config workload [<type>/]<name>[.<namespace>] [flags]
istioctl ztunnel-config w [<type>/]<name>[.<namespace>] [flags]
istioctl ztunnel-config workloads [<type>/]<name>[.<namespace>] [flags]
Flags | Shorthand | Description |
---|---|---|
--address <string> | Filter workloads by address field (default ``) | |
--as <string> | Username to impersonate for the operation. User could be a regular user or a service account in a namespace (default ``) | |
--as-group <stringArray> | Group to impersonate for the operation, this flag can be repeated to specify multiple groups. (default `[]`) | |
--as-uid <string> | UID to impersonate for the operation. (default ``) | |
--context <string> | Kubernetes configuration context (default ``) | |
--file <string> | -f | Ztunnel config dump JSON file (default ``) |
--istioNamespace <string> | -i | Istio system namespace (default `istio-system`) |
--kubeconfig <string> | -c | Kubernetes configuration file (default ``) |
--namespace <string> | -n | Kubernetes namespace (default ``) |
--node <string> | Filter workloads by node field (default ``) | |
--output <string> | -o | Output format: one of json|yaml|short (default `short`) |
--proxy-admin-port <int> | Ztunnel proxy admin port (default `15000`) | |
--vklog <Level> | number for the log level verbosity. Like -v flag. ex: --vklog=9 (default `0`) | |
--workload-namespace <string> | Filter workloads by namespace field (default ``) | |
--workload-node <string> | Filter workloads by node (default ``) |
Examples
# Retrieve summary about workload configuration for a randomly chosen ztunnel.
istioctl ztunnel-config workload
# Retrieve summary of workloads on node XXXX for a given Ztunnel instance.
istioctl ztunnel-config workload <ztunnel-name[.namespace]> --node ambient-worker
# Retrieve full workload dump of workloads with address XXXX for a given Ztunnel instance.
istioctl ztunnel-config workload <ztunnel-name[.namespace]> --address 0.0.0.0 -o json
# Retrieve Ztunnel config dump separately and inspect from file.
kubectl exec -it $ZTUNNEL -n istio-system -- curl localhost:15000/config_dump > ztunnel-config.json
istioctl ztunnel-config workloads --file ztunnel-config.json
# Retrieve workload summary for a specific namespace
istioctl ztunnel-config workloads <ztunnel-name[.namespace]> --workloads-namespace foo
Environment variables
These environment variables affect the behavior of theistioctl
command.Variable Name | Type | Default Value | Description |
---|---|---|---|
AMBIENT_ENABLE_STATUS | Boolean | false | If enabled, status messages for ambient mode will be written to resources. Currently, this does not do leader election, so may be unsafe to enable with multiple replicas. |
BYPASS_OVERLOAD_MANAGER_FOR_STATIC_LISTENERS | Boolean | true | If enabled, overload manager will not be applied to static listeners |
CA_TRUSTED_NODE_ACCOUNTS | String |
| If set, the list of service accounts that are allowed to use node authentication for CSRs. Node authentication allows an identity to create CSRs on behalf of other identities, but only if there is a pod running on the same node with that identity. This is intended for use with node proxies. |
CERT_SIGNER_DOMAIN | String |
| The cert signer domain info |
CLOUD_PLATFORM | String |
| Cloud Platform on which proxy is running, if not specified, Istio will try to discover the platform. Valid platform values are aws, azure, gcp, none |
CLUSTER_ID | String | Kubernetes | Defines the cluster and service registry that this Istiod instance belongs to |
COMPLIANCE_POLICY | String |
| If set, applies policy-specific restrictions over all existing TLS settings, including in-mesh mTLS and external TLS. Valid values are: * '' or unset places no additional restrictions. * 'fips-140-2' which enforces a version of the TLS protocol and a subset of cipher suites overriding any user preferences or defaults for all runtime components, including Envoy, gRPC Go SDK, and gRPC C++ SDK. WARNING: Setting compliance policy in the control plane is a necessary but not a sufficient requirement to achieve compliance. There are additional steps necessary to claim compliance, including using the validated cryptograhic modules (please consult https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/security/ssl#fips-140-2). |
ENABLE_100_CONTINUE_HEADERS | Boolean | true | If enabled, istiod will proxy 100-continue headers as is |
ENABLE_AUTO_SNI | Boolean | true | If enabled, automatically set SNI when `DestinationRules` do not specify the same |
ENABLE_CA_SERVER | Boolean | true | If this is set to false, will not create CA server in istiod. |
ENABLE_DEBUG_ON_HTTP | Boolean | true | If this is set to false, the debug interface will not be enabled, recommended for production |
ENABLE_DEFERRED_CLUSTER_CREATION | Boolean | true | If enabled, Istio will create clusters only when there are requests. This will save memory and CPU cycles in cases where there are lots of inactive clusters and > 1 worker thread |
ENABLE_DEFERRED_STATS_CREATION | Boolean | true | If enabled, Istio will lazily initialize a subset of the stats |
ENABLE_DELIMITED_STATS_TAG_REGEX | Boolean | true | If true, pilot will use the new delimited stat tag regex to generate Envoy stats tags. |
ENABLE_ENHANCED_DESTINATIONRULE_MERGE | Boolean | true | If enabled, Istio merge destinationrules considering their exportTo fields, they will be kept as independent rules if the exportTos are not equal. |
ENABLE_ENHANCED_RESOURCE_SCOPING | Boolean | true | If enabled, meshConfig.discoverySelectors will limit the CustomResource configurations(like Gateway,VirtualService,DestinationRule,Ingress, etc)that can be processed by pilot. This will also restrict the root-ca certificate distribution. |
ENABLE_HCM_INTERNAL_NETWORKS | Boolean | false | If enable, endpoints defined in mesh networks will be configured as internal addresses in Http Connection Manager |
ENABLE_INBOUND_RETRY_POLICY | Boolean | true | If true, enables retry policy for inbound routes which automatically retries requests that were reset before it reaches the service. |
ENABLE_LEADER_ELECTION | Boolean | true | If enabled (default), starts a leader election client and gains leadership before executing controllers. If false, it assumes that only one instance of istiod is running and skips leader election. |
ENABLE_LOCALITY_WEIGHTED_LB_CONFIG | Boolean | false | If enabled, always set LocalityWeightedLbConfig for a cluster, otherwise only apply it when locality lb is specified by DestinationRule for a service |
ENABLE_MCS_AUTO_EXPORT | Boolean | false | If enabled, istiod will automatically generate Kubernetes Multi-Cluster Services (MCS) ServiceExport resources for every service in the mesh. Services defined to be cluster-local in MeshConfig are excluded. |
ENABLE_MCS_CLUSTER_LOCAL | Boolean | false | If enabled, istiod will treat the host `<svc>.<namespace>.svc.cluster.local` as defined by the Kubernetes Multi-Cluster Services (MCS) spec. In this mode, requests to `cluster.local` will be routed to only those endpoints residing within the same cluster as the client. Requires that both ENABLE_MCS_SERVICE_DISCOVERY and ENABLE_MCS_HOST also be enabled. |
ENABLE_MCS_HOST | Boolean | false | If enabled, istiod will configure a Kubernetes Multi-Cluster Services (MCS) host (<svc>.<namespace>.svc.clusterset.local) for each service exported (via ServiceExport) in at least one cluster. Clients must, however, be able to successfully lookup these DNS hosts. That means that either Istio DNS interception must be enabled or an MCS controller must be used. Requires that ENABLE_MCS_SERVICE_DISCOVERY also be enabled. |
ENABLE_MCS_SERVICE_DISCOVERY | Boolean | false | If enabled, istiod will enable Kubernetes Multi-Cluster Services (MCS) service discovery mode. In this mode, service endpoints in a cluster will only be discoverable within the same cluster unless explicitly exported via ServiceExport. |
ENABLE_MULTICLUSTER_HEADLESS | Boolean | true | If true, the DNS name table for a headless service will resolve to same-network endpoints in any cluster. |
ENABLE_NATIVE_SIDECARS | Boolean | false | If set, used Kubernetes native Sidecar container support. Requires SidecarContainer feature flag. |
ENABLE_PROBE_KEEPALIVE_CONNECTIONS | Boolean | false | If enabled, readiness probes will keep the connection from pilot-agent to the application alive. This mirrors older Istio versions' behaviors, but not kubelet's. |
ENABLE_RESOLUTION_NONE_TARGET_PORT | Boolean | true | If enabled, targetPort will be supported for resolution=NONE ServiceEntry |
ENABLE_SELECTOR_BASED_K8S_GATEWAY_POLICY | Boolean | true | If disabled, Gateway API gateways will ignore workloadSelector policies, onlyapplying policies that select the gateway with a targetRef. |
ENABLE_TLS_ON_SIDECAR_INGRESS | Boolean | false | If enabled, the TLS configuration on Sidecar.ingress will take effect |
ENABLE_VTPROTOBUF | Boolean | true | If true, will use optimized vtprotobuf based marshaling. Requires a build with -tags=vtprotobuf. |
EXCLUDE_UNSAFE_503_FROM_DEFAULT_RETRY | Boolean | true | If true, excludes unsafe retry on 503 from default retry policy. |
EXTERNAL_ISTIOD | Boolean | false | If this is set to true, one Istiod will control remote clusters including CA. |
GCP_METADATA | String |
| Pipe separated GCP metadata, schemed as PROJECT_ID|PROJECT_NUMBER|CLUSTER_NAME|CLUSTER_ZONE |
GCP_QUOTA_PROJECT | String |
| Allows specification of a quota project to be used in requests to GCP APIs. |
GRPC_KEEPALIVE_INTERVAL | Time Duration | 30s | gRPC Keepalive Interval |
GRPC_KEEPALIVE_TIMEOUT | Time Duration | 10s | gRPC Keepalive Timeout |
HTTP_STRIP_FRAGMENT_FROM_PATH_UNSAFE_IF_DISABLED | Boolean | true | |
INBOUND_INTERCEPTION_MODE | String |
| The mode used to redirect inbound connections to Envoy, either "REDIRECT" or "TPROXY" |
INBOUND_TPROXY_MARK | String |
| |
INJECTION_WEBHOOK_CONFIG_NAME | String | istio-sidecar-injector | Name of the mutatingwebhookconfiguration to patch, if istioctl is not used. |
ISTIOCONFIG | String | $HOME/.istioctl/config.yaml | Default values for istioctl flags |
ISTIOCTL_AUTHORITY | String |
| The istioctl --authority override |
ISTIOCTL_CERT_DIR | String |
| The istioctl --cert-dir override |
ISTIOCTL_INSECURE | Boolean | false | The istioctl --insecure override |
ISTIOCTL_ISTIONAMESPACE | String | istio-system | The istioctl --istioNamespace override |
ISTIOCTL_PLAINTEXT | Boolean | false | The istioctl --plaintext override |
ISTIOCTL_PREFER_EXPERIMENTAL | Boolean | false | The istioctl should use experimental subcommand variants |
ISTIOCTL_XDS_ADDRESS | String |
| The istioctl --xds-address override |
ISTIOCTL_XDS_PORT | Integer | 15012 | The istioctl --xds-port override |
ISTIOD_CUSTOM_HOST | String |
| Custom host name of istiod that istiod signs the server cert. Multiple custom host names are supported, and multiple values are separated by commas. |
ISTIO_AGENT_ENABLE_WASM_REMOTE_LOAD_CONVERSION | Boolean | true | If enabled, Istio agent will intercept ECDS resource update, downloads Wasm module, and replaces Wasm module remote load with downloaded local module file. |
ISTIO_BOOTSTRAP | String |
| |
ISTIO_DELTA_XDS | Boolean | true | If enabled, pilot will only send the delta configs as opposed to the state of the world on a Resource Request. This feature uses the delta xds api, but does not currently send the actual deltas. |
ISTIO_DUAL_STACK | Boolean | false | If true, Istio will enable the Dual Stack feature. |
ISTIO_ENABLE_CONTROLLER_QUEUE_METRICS | Boolean | false | If enabled, publishes metrics for queue depth, latency and processing times. |
ISTIO_ENABLE_HTTP2_PROBING | Boolean | true | If enabled, HTTP2 probes will be enabled for HTTPS probes, following Kubernetes |
ISTIO_ENABLE_IPV4_OUTBOUND_LISTENER_FOR_IPV6_CLUSTERS | Boolean | false | If true, pilot will configure an additional IPv4 listener for outbound traffic in IPv6 only clusters, e.g. AWS EKS IPv6 only clusters. |
ISTIO_GPRC_MAXRECVMSGSIZE | Integer | 4194304 | Sets the max receive buffer size of gRPC stream in bytes. |
ISTIO_GPRC_MAXSTREAMS | Integer | 100000 | Sets the maximum number of concurrent grpc streams. |
ISTIO_KUBE_CLIENT_CONTENT_TYPE | String | protobuf | The content type to use for Kubernetes clients. Defaults to protobuf. Valid options: [protobuf, json] |
ISTIO_MULTIROOT_MESH | Boolean | false | If enabled, mesh will support certificates signed by more than one trustAnchor for ISTIO_MUTUAL mTLS |
ISTIO_OUTBOUND_IPV4_LOOPBACK_CIDR | String | 127.0.0.1/32 | IPv4 CIDR range used to identify outbound traffic on loopback interface intended for application container |
ISTIO_OUTBOUND_OWNER_GROUPS | String | * | Comma separated list of groups whose outgoing traffic is to be redirected to Envoy. A group can be specified either by name or by a numeric GID. The wildcard character "*" can be used to configure redirection of traffic from all groups. |
ISTIO_OUTBOUND_OWNER_GROUPS_EXCLUDE | String |
| Comma separated list of groups whose outgoing traffic is to be excluded from redirection to Envoy. A group can be specified either by name or by a numeric GID. Only applies when traffic from all groups (i.e. "*") is being redirected to Envoy. |
ISTIO_PROMETHEUS_ANNOTATIONS | String |
| |
ISTIO_WATCH_NAMESPACE | String |
| If set, limit Kubernetes watches to a single namespace. Warning: only a single namespace can be set. |
ISTIO_WORKLOAD_ENTRY_VALIDATE_IDENTITY | Boolean | true | If enabled, will validate the identity of a workload matches the identity of the WorkloadEntry it is associating with for health checks and auto registration. This flag is added for backwards compatibility only and will be removed in future releases |
JWKS_RESOLVER_INSECURE_SKIP_VERIFY | Boolean | false | If enabled, istiod will skip verifying the certificate of the JWKS server. |
K_REVISION | String |
| KNative revision, set if running in knative |
LABEL_CANONICAL_SERVICES_FOR_MESH_EXTERNAL_SERVICE_ENTRIES | Boolean | false | If enabled, metadata representing canonical services for ServiceEntry resources with a location of mesh_external will be populatedin the cluster metadata for those endpoints. |
LOCAL_CLUSTER_SECRET_WATCHER | Boolean | false | If enabled, the cluster secret watcher will watch the namespace of the external cluster instead of config cluster |
MCS_API_GROUP | String | multicluster.x-k8s.io | The group to be used for the Kubernetes Multi-Cluster Services (MCS) API. |
MCS_API_VERSION | String | v1alpha1 | The version to be used for the Kubernetes Multi-Cluster Services (MCS) API. |
METRICS_LOCALHOST_ACCESS_ONLY | Boolean | false | This will disable metrics endpoint from outside of the pod, allowing only localhost access. |
METRIC_GRACEFUL_DELETION_INTERVAL | Time Duration | 5m0s | Metric expiry graceful deletion interval. No-op if METRIC_ROTATION_INTERVAL is disabled. |
METRIC_ROTATION_INTERVAL | Time Duration | 0s | Metric scope rotation interval, set to 0 to disable the metric scope rotation |
MUTEX_PROFILE_FRACTION | Integer | 1000 | If set to a non-zero value, enables mutex profiling a rate of 1/MUTEX_PROFILE_FRACTION events. For example, '1000' will record 0.1% of events. Set to 0 to disable entirely. |
PILOT_ALLOW_SIDECAR_SERVICE_INBOUND_LISTENER_MERGE | Boolean | false | If set, it allows creating inbound listeners for service ports and sidecar ingress listeners |
PILOT_ANALYSIS_INTERVAL | Time Duration | 10s | If analysis is enabled, pilot will run istio analyzers using this value as interval in seconds Istio Resources |
PILOT_AUTO_ALLOW_WAYPOINT_POLICY | Boolean | false | If enabled, zTunnel will receive synthetic authorization policies for each workload ALLOW the Waypoint's identity. Unless other ALLOW policies are created, this effectively denies traffic that doesn't go through the waypoint. |
PILOT_CERT_PROVIDER | String | istiod | The provider of Pilot DNS certificate. K8S RA will be used for k8s.io/NAME. 'istiod' value will sign using Istio build in CA. Other values will not not generate TLS certs, but still distribute ./etc/certs/root-cert.pem. Only used if custom certificates are not mounted. |
PILOT_CONVERT_SIDECAR_SCOPE_CONCURRENCY | Integer | 1 | Used to adjust the concurrency of SidecarScope conversions. When istiod is deployed on a multi-core CPU server, increasing this value will help to use the CPU to accelerate configuration push, but it also means that istiod will consume more CPU resources. |
PILOT_DEBOUNCE_AFTER | Time Duration | 100ms | The delay added to config/registry events for debouncing. This will delay the push by at least this interval. If no change is detected within this period, the push will happen, otherwise we'll keep delaying until things settle, up to a max of PILOT_DEBOUNCE_MAX. |
PILOT_DEBOUNCE_MAX | Time Duration | 10s | The maximum amount of time to wait for events while debouncing. If events keep showing up with no breaks for this time, we'll trigger a push. |
PILOT_DISABLE_MX_ALPN | Boolean | false | If true, pilot will not put istio-peer-exchange ALPN into TLS handshake configuration. |
PILOT_DRAINING_LABEL | String | istio.io/draining | If not empty, endpoints with the label value present will be sent with status DRAINING. |
PILOT_ENABLE_ALPHA_GATEWAY_API | Boolean | false | If this is set to true, support for alpha APIs in the Kubernetes gateway-api (github.com/kubernetes-sigs/gateway-api) will be enabled. In addition to this being enabled, the gateway-api CRDs need to be installed. |
PILOT_ENABLE_ALPN_FILTER | Boolean | true | If true, pilot will add Istio ALPN filters, required for proper protocol sniffing. |
PILOT_ENABLE_AMBIENT | Boolean | false | If enabled, ambient mode can be used. Individual flags configure fine grained enablement; this must be enabled for any ambient functionality. |
PILOT_ENABLE_AMBIENT_WAYPOINTS | Boolean | false | If enabled, controllers required for ambient will run. This is required to run ambient mesh. |
PILOT_ENABLE_ANALYSIS | Boolean | false | If enabled, pilot will run istio analyzers and write analysis errors to the Status field of any Istio Resources |
PILOT_ENABLE_CDS_CACHE | Boolean | true | If true, Pilot will cache CDS responses. Note: this depends on PILOT_ENABLE_XDS_CACHE. |
PILOT_ENABLE_CROSS_CLUSTER_WORKLOAD_ENTRY | Boolean | true | If enabled, pilot will read WorkloadEntry from other clusters, selectable by Services in that cluster. |
PILOT_ENABLE_EDS_DEBOUNCE | Boolean | true | If enabled, Pilot will include EDS pushes in the push debouncing, configured by PILOT_DEBOUNCE_AFTER and PILOT_DEBOUNCE_MAX. EDS pushes may be delayed, but there will be fewer pushes. By default this is enabled |
PILOT_ENABLE_EDS_FOR_HEADLESS_SERVICES | Boolean | false | If enabled, for headless service in Kubernetes, pilot will send endpoints over EDS, allowing the sidecar to load balance among pods in the headless service. This feature should be enabled if applications access all services explicitly via a HTTP proxy port in the sidecar. |
PILOT_ENABLE_GATEWAY_API | Boolean | true | If this is set to true, support for Kubernetes gateway-api (github.com/kubernetes-sigs/gateway-api) will be enabled. In addition to this being enabled, the gateway-api CRDs need to be installed. |
PILOT_ENABLE_GATEWAY_API_DEPLOYMENT_CONTROLLER | Boolean | true | If this is set to true, gateway-api resources will automatically provision in cluster deployment, services, etc |
PILOT_ENABLE_GATEWAY_API_GATEWAYCLASS_CONTROLLER | Boolean | true | If this is set to true, istiod will create and manage its default GatewayClasses |
PILOT_ENABLE_GATEWAY_API_STATUS | Boolean | true | If this is set to true, gateway-api resources will have status written to them |
PILOT_ENABLE_IP_AUTOALLOCATE | Boolean | false | If enabled, pilot will start a controller that assigns IP addresses to ServiceEntry which do not have a user-supplied IP. This, when combined with DNS capture allows for tcp routing of traffic sent to the ServiceEntry. |
PILOT_ENABLE_K8S_SELECT_WORKLOAD_ENTRIES | Boolean | true | If enabled, Kubernetes services with selectors will select workload entries with matching labels. It is safe to disable it if you are quite sure you don't need this feature |
PILOT_ENABLE_METADATA_EXCHANGE | Boolean | true | If true, pilot will add metadata exchange filters, which will be consumed by telemetry filter. |
PILOT_ENABLE_MONGO_FILTER | Boolean | true | EnableMongoFilter enables injection of `envoy.filters.network.mongo_proxy` in the filter chain. |
PILOT_ENABLE_MYSQL_FILTER | Boolean | false | EnableMysqlFilter enables injection of `envoy.filters.network.mysql_proxy` in the filter chain. |
PILOT_ENABLE_NODE_UNTAINT_CONTROLLERS | Boolean | false | If enabled, controller that untaints nodes with cni pods ready will run. This should be enabled if you disabled ambient init containers. |
PILOT_ENABLE_PERSISTENT_SESSION_FILTER | Boolean | false | If enabled, Istiod sets up persistent session filter for listeners, if services have 'PILOT_PERSISTENT_SESSION_LABEL' set. |
PILOT_ENABLE_QUIC_LISTENERS | Boolean | false | If true, QUIC listeners will be generated wherever there are listeners terminating TLS on gateways if the gateway service exposes a UDP port with the same number (for example 443/TCP and 443/UDP) |
PILOT_ENABLE_RDS_CACHE | Boolean | true | If true, Pilot will cache RDS responses. Note: this depends on PILOT_ENABLE_XDS_CACHE. |
PILOT_ENABLE_REDIS_FILTER | Boolean | false | EnableRedisFilter enables injection of `envoy.filters.network.redis_proxy` in the filter chain. |
PILOT_ENABLE_ROUTE_COLLAPSE_OPTIMIZATION | Boolean | true | If true, Pilot will merge virtual hosts with the same routes into a single virtual host, as an optimization. |
PILOT_ENABLE_SENDING_HBONE | Boolean | false | If enabled, HBONE will be allowed when sending to destinations. |
PILOT_ENABLE_SERVICEENTRY_SELECT_PODS | Boolean | true | If enabled, service entries with selectors will select pods from the cluster. It is safe to disable it if you are quite sure you don't need this feature |
PILOT_ENABLE_SIDECAR_LISTENING_HBONE | Boolean | false | If enabled, HBONE support can be configured for proxies. |
PILOT_ENABLE_TELEMETRY_LABEL | Boolean | true | If true, pilot will add telemetry related metadata to cluster and endpoint resources, which will be consumed by telemetry filter. |
PILOT_ENABLE_WORKLOAD_ENTRY_AUTOREGISTRATION | Boolean | true | Enables auto-registering WorkloadEntries based on associated WorkloadGroups upon XDS connection by the workload. |
PILOT_ENABLE_WORKLOAD_ENTRY_HEALTHCHECKS | Boolean | true | Enables automatic health checks of WorkloadEntries based on the config provided in the associated WorkloadGroup |
PILOT_ENABLE_XDS_CACHE | Boolean | true | If true, Pilot will cache XDS responses. |
PILOT_ENABLE_XDS_IDENTITY_CHECK | Boolean | true | If enabled, pilot will authorize XDS clients, to ensure they are acting only as namespaces they have permissions for. |
PILOT_ENDPOINT_TELEMETRY_LABEL | Boolean | true | If true, pilot will add telemetry related metadata to Endpoint resource, which will be consumed by telemetry filter. |
PILOT_ENVOY_FILTER_STATS | Boolean | false | If true, Pilot will collect metrics for envoy filter operations. |
PILOT_FILTER_GATEWAY_CLUSTER_CONFIG | Boolean | false | If enabled, Pilot will send only clusters that referenced in gateway virtual services attached to gateway |
PILOT_GATEWAY_API_CONTROLLER_NAME | String | istio.io/gateway-controller | Gateway API controller name. istiod will only reconcile Gateway API resources referencing a GatewayClass with this controller name |
PILOT_GATEWAY_API_DEFAULT_GATEWAYCLASS_NAME | String | istio | Name of the default GatewayClass |
PILOT_HTTP10 | Boolean | false | Enables the use of HTTP 1.0 in the outbound HTTP listeners, to support legacy applications. |
PILOT_INSECURE_MULTICLUSTER_KUBECONFIG_OPTIONS | String |
| Comma separated list of potentially insecure kubeconfig authentication options that are allowed for multicluster authentication.Support values: all authProviders (`gcp`, `azure`, `exec`, `openstack`), `clientKey`, `clientCertificate`, `tokenFile`, and `exec`. |
PILOT_JWT_ENABLE_REMOTE_JWKS | String | false | Mode of fetching JWKs from JwksUri in RequestAuthentication. Supported value: istiod, false, hybrid, true, envoy. The client fetching JWKs is as following: istiod/false - Istiod; hybrid/true - Envoy and fallback to Istiod if JWKs server is external; envoy - Envoy. |
PILOT_JWT_PUB_KEY_REFRESH_INTERVAL | Time Duration | 20m0s | The interval for istiod to fetch the jwks_uri for the jwks public key. |
PILOT_MAX_REQUESTS_PER_SECOND | Floating-Point | 0 | Limits the number of incoming XDS requests per second. On larger machines this can be increased to handle more proxies concurrently. If set to 0 or unset, the max will be automatically determined based on the machine size |
PILOT_MULTI_NETWORK_DISCOVER_GATEWAY_API | Boolean | true | If true, Pilot will discover labeled Kubernetes gateway objects as multi-network gateways. |
PILOT_PERSISTENT_SESSION_HEADER_LABEL | String | istio.io/persistent-session-header | If not empty, services with this label will use header based persistent sessions |
PILOT_PERSISTENT_SESSION_LABEL | String | istio.io/persistent-session | If not empty, services with this label will use cookie based persistent sessions |
PILOT_PREFER_SENDING_HBONE | Boolean | false | If enabled, HBONE will be preferred when sending to destinations. |
PILOT_PUSH_THROTTLE | Integer | 0 | Limits the number of concurrent pushes allowed. On larger machines this can be increased for faster pushes. If set to 0 or unset, the max will be automatically determined based on the machine size |
PILOT_REMOTE_CLUSTER_TIMEOUT | Time Duration | 30s | After this timeout expires, pilot can become ready without syncing data from clusters added via remote-secrets. Setting the timeout to 0 disables this behavior. |
PILOT_SCOPE_GATEWAY_TO_NAMESPACE | Boolean | false | If enabled, a gateway workload can only select gateway resources in the same namespace. Gateways with same selectors in different namespaces will not be applicable. |
PILOT_SEND_UNHEALTHY_ENDPOINTS | Boolean | false | If enabled, Pilot will include unhealthy endpoints in EDS pushes and even if they are sent Envoy does not use them for load balancing. To avoid, sending traffic to non ready endpoints, enabling this flag, disables panic threshold in Envoy i.e. Envoy does not load balance requests to unhealthy/non-ready hosts even if the percentage of healthy hosts fall below minimum health percentage(panic threshold). |
PILOT_SIDECAR_USE_REMOTE_ADDRESS | Boolean | false | UseRemoteAddress sets useRemoteAddress to true for sidecar outbound listeners. |
PILOT_SKIP_VALIDATE_TRUST_DOMAIN | Boolean | false | Skip validating the peer is from the same trust domain when mTLS is enabled in authentication policy |
PILOT_STATUS_BURST | Integer | 500 | If status is enabled, controls the Burst rate with which status will be updated. See https://godoc.org/k8s.io/client-go/rest#Config Burst |
PILOT_STATUS_MAX_WORKERS | Integer | 100 | The maximum number of workers Pilot will use to keep configuration status up to date. Smaller numbers will result in higher status latency, but larger numbers may impact CPU in high scale environments. |
PILOT_STATUS_QPS | Integer | 100 | If status is enabled, controls the QPS with which status will be updated. See https://godoc.org/k8s.io/client-go/rest#Config QPS |
PILOT_STATUS_UPDATE_INTERVAL | Time Duration | 500ms | Interval to update the XDS distribution status. |
PILOT_TRACE_SAMPLING | Floating-Point | 1 | Sets the mesh-wide trace sampling percentage. Should be 0.0 - 100.0. Precision to 0.01. Default is 1.0. |
PILOT_UNIFIED_SIDECAR_SCOPE | Boolean | true | If true, unified SidecarScope creation will be used. This is only intended as a temporary feature flag for backwards compatibility. |
PILOT_WORKLOAD_ENTRY_GRACE_PERIOD | Time Duration | 10s | The amount of time an auto-registered workload can remain disconnected from all Pilot instances before the associated WorkloadEntry is cleaned up. |
PILOT_XDS_CACHE_INDEX_CLEAR_INTERVAL | Time Duration | 5s | The interval for xds cache index clearing. |
PILOT_XDS_CACHE_SIZE | Integer | 60000 | The maximum number of cache entries for the XDS cache. |
PILOT_XDS_CACHE_STATS | Boolean | false | If true, Pilot will collect metrics for XDS cache efficiency. |
PLATFORM | String |
| Platform where Istio is deployed. Possible values are "openshift" and "gcp" |
PREFER_DESTINATIONRULE_TLS_FOR_EXTERNAL_SERVICES | Boolean | true | If true, external services will prefer the TLS settings from DestinationRules over the metadata TLS settings. |
RESOLVE_HOSTNAME_GATEWAYS | Boolean | true | If true, hostnames in the LoadBalancer addresses of a Service will be resolved at the control plane for use in cross-network gateways. |
REWRITE_PROBE_LEGACY_LOCALHOST_DESTINATION | Boolean | false | If enabled, readiness probes will be sent to 'localhost'. Otherwise, they will be sent to the Pod's IP, matching Kubernetes' behavior. |
SHARED_MESH_CONFIG | String |
| Additional config map to load for shared MeshConfig settings. The standard mesh config will take precedence. |
TERM | String |
| Specifies terminal type. Use 'dumb' to suppress color output |
TOKEN_AUDIENCES | String | istio-ca | A list of comma separated audiences to check in the JWT token before issuing a certificate. The token is accepted if it matches with one of the audiences |
TRUSTED_GATEWAY_CIDR | String |
| If set, any connections from gateway to Istiod with this CIDR range are treated as trusted for using authentication mechanisms like XFCC. This can only be used when the network where Istiod and the authenticating gateways are running in a trusted/secure network |
UNSAFE_ENABLE_ADMIN_ENDPOINTS | Boolean | false | If this is set to true, dangerous admin endpoints will be exposed on the debug interface. Not recommended for production. |
UNSAFE_PILOT_ENABLE_DELTA_TEST | Boolean | false | If enabled, addition runtime tests for Delta XDS efficiency are added. These checks are extremely expensive, so this should be used only for testing, not production. |
UNSAFE_PILOT_ENABLE_RUNTIME_ASSERTIONS | Boolean | false | If enabled, addition runtime asserts will be performed. These checks are both expensive and panic on failure. As a result, this should be used only for testing. |
USE_CACERTS_FOR_SELF_SIGNED_CA | Boolean | false | If enabled, istiod will use a secret named cacerts to store its self-signed istio-generated root certificate. |
VALIDATION_WEBHOOK_CONFIG_NAME | String | istio-istio-system | If not empty, the controller will automatically patch validatingwebhookconfiguration when the CA certificate changes. Only works in kubernetes environment. |
XDS_AUTH | Boolean | true | If true, will authenticate XDS clients. |
XDS_AUTH_PLAINTEXT | Boolean | false | authenticate plain text requests - used if Istiod is running on a secure/trusted network |
Exported metrics
Metric Name | Type | Description |
---|---|---|
auto_registration_deletes_total | Sum | Total number of auto registration cleaned up by periodic timer. |
auto_registration_errors_total | Sum | Total number of auto registration errors. |
auto_registration_success_total | Sum | Total number of successful auto registrations. |
auto_registration_unregister_total | Sum | Total number of unregistrations. |
auto_registration_updates_total | Sum | Total number of auto registration updates. |
controller_sync_errors_total | Sum | Total number of errorMetric syncing controllers. |
endpoint_no_pod | LastValue | Endpoints without an associated pod. |
istio_build | LastValue | Istio component build info |
istiod_managed_clusters | LastValue | Number of clusters managed by istiod |
num_outgoing_retries | Sum | Number of outgoing retry requests (e.g. to a token exchange server, CA, etc.) |
pilot_conflict_inbound_listener | LastValue | Number of conflicting inbound listeners. |
pilot_conflict_outbound_listener_tcp_over_current_tcp | LastValue | Number of conflicting tcp listeners with current tcp listener. |
pilot_debounce_time | Distribution | Delay in seconds between the first config enters debouncing and the merged push request is pushed into the push queue. |
pilot_destrule_subsets | LastValue | Duplicate subsets across destination rules for same host |
pilot_dns_cluster_without_endpoints | LastValue | DNS clusters without endpoints caused by the endpoint field in STRICT_DNS type cluster is not set or the corresponding subset cannot select any endpoint |
pilot_duplicate_envoy_clusters | LastValue | Duplicate envoy clusters caused by service entries with same hostname |
pilot_eds_no_instances | LastValue | Number of clusters without instances. |
pilot_endpoint_not_ready | LastValue | Endpoint found in unready state. |
pilot_envoy_filter_status | LastValue | Status of Envoy filters whether it was applied or errored. |
pilot_inbound_updates | Sum | Total number of updates received by pilot. |
pilot_jwks_resolver_network_fetch_fail_total | Sum | Total number of failed network fetch by pilot jwks resolver |
pilot_jwks_resolver_network_fetch_success_total | Sum | Total number of successfully network fetch by pilot jwks resolver |
pilot_k8s_cfg_events | Sum | Events from k8s config. |
pilot_k8s_endpoints_pending_pod | LastValue | Number of endpoints that do not currently have any corresponding pods. |
pilot_k8s_endpoints_with_no_pods | Sum | Endpoints that does not have any corresponding pods. |
pilot_k8s_reg_events | Sum | Events from k8s registry. |
pilot_no_ip | LastValue | Pods not found in the endpoint table, possibly invalid. |
pilot_proxy_convergence_time | Distribution | Delay in seconds between config change and a proxy receiving all required configuration. |
pilot_proxy_queue_time | Distribution | Time in seconds, a proxy is in the push queue before being dequeued. |
pilot_push_triggers | Sum | Total number of times a push was triggered, labeled by reason for the push. |
pilot_pushcontext_init_seconds | Distribution | Total time in seconds Pilot takes to init pushContext. |
pilot_sds_certificate_errors_total | Sum | Total number of failures to fetch SDS key and certificate. |
pilot_services | LastValue | Total services known to pilot. |
pilot_total_rejected_configs | Sum | Total number of configs that Pilot had to reject or ignore. |
pilot_total_xds_internal_errors | Sum | Total number of internal XDS errors in pilot. |
pilot_total_xds_rejects | Sum | Total number of XDS responses from pilot rejected by proxy. |
pilot_virt_services | LastValue | Total virtual services known to pilot. |
pilot_vservice_dup_domain | LastValue | Virtual services with dup domains. |
pilot_worker_queue_depth | LastValue | Depth of the controller queues |
pilot_worker_queue_duration | Distribution | Time taken to process an item |
pilot_worker_queue_latency | Distribution | Latency before the item is processed |
pilot_xds | LastValue | Number of endpoints connected to this pilot using XDS. |
pilot_xds_cds_reject | LastValue | Pilot rejected CDS configs. |
pilot_xds_config_size_bytes | Distribution | Distribution of configuration sizes pushed to clients |
pilot_xds_eds_reject | LastValue | Pilot rejected EDS. |
pilot_xds_expired_nonce | Sum | Total number of XDS requests with an expired nonce. |
pilot_xds_lds_reject | LastValue | Pilot rejected LDS. |
pilot_xds_push_context_errors | Sum | Number of errors (timeouts) initiating push context. |
pilot_xds_push_time | Distribution | Total time in seconds Pilot takes to push lds, rds, cds and eds. |
pilot_xds_pushes | Sum | Pilot build and send errors for lds, rds, cds and eds. |
pilot_xds_rds_reject | LastValue | Pilot rejected RDS. |
pilot_xds_send_time | Distribution | Total time in seconds Pilot takes to send generated configuration. |
pilot_xds_write_timeout | Sum | Pilot XDS response write timeouts. |
provider_lookup_cluster_failures | Sum | Number of times a cluster lookup failed |
remote_cluster_sync_timeouts_total | Sum | Number of times remote clusters took too long to sync, causing slow startup that excludes remote clusters. |
scrape_failures_total | Sum | The total number of failed scrapes. |
scrapes_total | Sum | The total number of scrapes. |
sidecar_injection_failure_total | Sum | Total number of failed sidecar injection requests. |
sidecar_injection_requests_total | Sum | Total number of sidecar injection requests. |
sidecar_injection_skip_total | Sum | Total number of skipped sidecar injection requests. |
sidecar_injection_success_total | Sum | Total number of successful sidecar injection requests. |
sidecar_injection_time_seconds | Distribution | Total time taken for injection in seconds. |
startup_duration_seconds | LastValue | The time from the process starting to being marked ready. |
wasm_cache_entries | LastValue | number of Wasm remote fetch cache entries. |
wasm_cache_lookup_count | Sum | number of Wasm remote fetch cache lookups. |
wasm_config_conversion_count | Sum | number of Wasm config conversion count and results, including success, no remote load, marshal failure, remote fetch failure, miss remote fetch hint. |
wasm_config_conversion_duration | Distribution | Total time in milliseconds istio-agent spends on converting remote load in Wasm config. |
wasm_remote_fetch_count | Sum | number of Wasm remote fetches and results, including success, download failure, and checksum mismatch. |
webhook_patch_attempts_total | Sum | Webhook patching attempts |
webhook_patch_failures_total | Sum | Webhook patching total failures |
webhook_patch_retries_total | Sum | Webhook patching retries |
xds_cache_dependent_config_size | LastValue | Current size of dependent configs |
xds_cache_evictions | Sum | Total number of xds cache evictions. |
xds_cache_reads | Sum | Total number of xds cache xdsCacheReads. |
xds_cache_size | LastValue | Current size of xds cache |