mirror of https://github.com/istio/istio.io.git
172 lines
37 KiB
HTML
172 lines
37 KiB
HTML
<!DOCTYPE html><html lang="en" itemscope itemtype="https://schema.org/WebPage" style="overflow-y: scroll;"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="title" content="istioctl"><meta name="og:title" content="istioctl"><meta name="og:image" content="/v0.1/img/logo.png"/><meta name="description" content="Istio control interface"><meta name="og:description" content="Istio control interface"><title>Istioldie 0.1 / istioctl</title><script> window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; ga('create', 'UA-98480406-2', 'auto'); ga('send', 'pageview'); </script> <script async src='https://www.google-analytics.com/analytics.js'></script><link href='https://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300italic,400italic,500,500italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'><link rel="alternate" type="application/rss+xml" title="Istio Blog RSS" href="/v0.1/feed.xml"><link rel="apple-touch-icon" href="/v0.1/favicons/apple-touch-icon.png" sizes="180x180"><link rel="icon" type="image/png" href="/v0.1/favicons/android-chrome-96x96.png" sizes="96x96" ><link rel="icon" type="image/png" href="/v0.1/favicons/favicon-32x32.png" sizes="32x32"><link rel="icon" type="image/png" href="/v0.1/favicons/favicon-16x16.png" sizes="16x16"><link rel="manifest" href="/v0.1/favicons/manifest.json"><link rel="mask-icon" href="/v0.1/favicons/safari-pinned-tab.svg" color="#2DA6B0"><meta name="msapplication-TileColor" content="#ffffff"><meta name="msapplication-TileImage" content="/v0.1/favicons/mstile-150x150.png"><link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet"><link rel="stylesheet" href="/v0.1/css/all.css"><link rel="stylesheet" href="/v0.1/css/prism.css"><link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script></head><body class="language-unknown"><div class="nav-hero-container" style="z-index: 200000;"><nav id="header-nav" class="navbar navbar-inverse" role="navigation"><div class="container"><div class="row"><div class="col-md-11 nofloat center-block "><div class="navbar-header"> <button type="button" class="hamburger navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse-1" aria-expanded="false"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="/v0.1/"><div> <img src="/v0.1/img/logo.png" alt="Istio" width="36px" height="54px"/> <span class="brand-name">Istioldie 0.1</span></div></a></div><div class="collapse navbar-collapse" id="navbar-collapse-1"><ul class="nav navbar-nav navbar-right"><li><a href="/v0.1/about/" >About</a></li><li><a href="/v0.1/docs/" class='current'>Docs</a></li><li><a href="/v0.1/blog/" >Blog</a></li><li><a href="/v0.1/community/" >Community</a></li><li><a href="/v0.1/faq/" >FAQ</a></li><li class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href=""> <i class='fa fa-lg fa-cog'></i> <span class="caret"></span> </a><ul class="dropdown-menu"><h6 class="dropdown-header">Other versions of this site</h6><li> <a href="https://istio.io">Current Release</a></li><li> <a href="https://preliminary.istio.io">Next Release</a></li><li> <a href="https://archive.istio.io">Older Releases</a></li></ul></li><li><form name="cse" id="searchbox_demo" class="navbar-form navbar-right" role="search"> <input type="hidden" name="cx" value="013699703217164175118:iwwf17ikgf4" /> <input type="hidden" name="ie" value="utf-8" /> <input type="hidden" name="hl" value="en" /><div class="form-group"><div class="input-group"> <input name="q" class="form-control" type="text" size="30" /><div class="input-group-addon"> <span class="btn-search glyphicon glyphicon-search"></span></div></div></div></form> <script type="text/javascript" src="https://www.google.com/cse/brand?form=searchbox_demo"></script></li></ul></div></div></div></div></nav></div><div class="container"><div class="row"><div class="col-md-11 nofloat center-block" style="margin-top: 3px;"><ul class="col-sm-10 nav nav-tabs"><li role="presentation" ><a href="/v0.1/docs/index.html">Welcome</a></li><li role="presentation" ><a href="/v0.1/docs/concepts/index.html">Concepts</a></li><li role="presentation" ><a href="/v0.1/docs/tasks/index.html">Tasks</a></li><li role="presentation" ><a href="/v0.1/docs/samples/index.html">Samples</a></li><li role="presentation" class='active'><a href="/v0.1/docs/reference/index.html">Reference</a></li></ul></div></div></div><script src="/v0.1/js/navtree.js"></script><div class="container docs"><div class="row"><div class="col-md-11 nofloat center-block"><div class="row"><div id="sidebar-container" class="col-sm-3"><ul class="doc-side-nav"><li><h5 class='doc-side-nav-title'>Reference</h5></li><script type="text/javascript"> var docs = []; docs.push({path: [ "api", "index.md", ], url: "/docs/reference/api/index.html", title: "API", order: 21, overview: "Detailed information on API parameters."}); docs.push({path: [ "api", "mixer", "index.md", ], url: "/docs/reference/api/mixer/index.html", title: "Mixer", order: 10, overview: "Detailed information on configuration and API exposed by Mixer."}); docs.push({path: [ "api", "mixer", "mixer-service.md", ], url: "/docs/reference/api/mixer/mixer-service.html", title: "Mixer Service", order: 1200, overview: "Mixer's API Surface"}); docs.push({path: [ "api", "mixer", "status.md", ], url: "/docs/reference/api/mixer/status.html", title: "Status RPC", order: 40, overview: "Google's rpc.Status proto"}); docs.push({path: [ "commands", "index.md", ], url: "/docs/reference/commands/index.html", title: "CLI", order: 30, overview: "Describes usage and options of the Istio CLI and other utilities."}); docs.push({path: [ "commands", "istioctl.md", ], url: "/docs/reference/commands/istioctl.html", title: "istioctl", order: 1, overview: "Istio control interface"}); docs.push({path: [ "commands", "mixc.md", ], url: "/docs/reference/commands/mixc.html", title: "mixc", order: 101, overview: "Utility to trigger direct calls to Mixer's API."}); docs.push({path: [ "commands", "mixs.md", ], url: "/docs/reference/commands/mixs.html", title: "mixs", order: 201, overview: "Mixer is Istio's abstraction on top of infrastructure backends."}); docs.push({path: [ "config", "index.md", ], url: "/docs/reference/config/index.html", title: "Configuration", order: 22, overview: "Detailed information on configuration options."}); docs.push({path: [ "config", "mixer", "adapters", "denychecker.md", ], url: "/docs/reference/config/mixer/adapters/denyChecker.html", title: "denyChecker", order: 0, overview: "denyChecker adapter configuration schema"}); docs.push({path: [ "config", "mixer", "adapters", "genericlistchecker.md", ], url: "/docs/reference/config/mixer/adapters/genericListChecker.html", title: "genericListChecker", order: 10, overview: "genericListChecker adapter configuration schema"}); docs.push({path: [ "config", "mixer", "adapters", "index.md", ], url: "/docs/reference/config/mixer/adapters/index.html", title: "Adapters", order: 2000, overview: "Mixer's adapter configuration schemas."}); docs.push({path: [ "config", "mixer", "adapters", "iplistchecker.md", ], url: "/docs/reference/config/mixer/adapters/ipListChecker.html", title: "ipListChecker", order: 20, overview: "ipListChecker adapter configuration schema"}); docs.push({path: [ "config", "mixer", "adapters", "kubernetes.md", ], url: "/docs/reference/config/mixer/adapters/kubernetes.html", title: "kubernetes", order: 30, overview: "kubernetes adapter configuration schema"}); docs.push({path: [ "config", "mixer", "adapters", "memquota.md", ], url: "/docs/reference/config/mixer/adapters/memQuota.html", title: "memQuota", order: 40, overview: "memQuota adapter configuration schema"}); docs.push({path: [ "config", "mixer", "adapters", "prometheus.md", ], url: "/docs/reference/config/mixer/adapters/prometheus.html", title: "prometheus", order: 50, overview: "prometheus adapter configuration schema"}); docs.push({path: [ "config", "mixer", "adapters", "redisquota.md", ], url: "/docs/reference/config/mixer/adapters/redisquota.html", title: "redisquota", order: 60, overview: "redisquota adapter configuration schema"}); docs.push({path: [ "config", "mixer", "adapters", "statsd.md", ], url: "/docs/reference/config/mixer/adapters/statsd.html", title: "statsd", order: 70, overview: "statsd adapter configuration schema"}); docs.push({path: [ "config", "mixer", "adapters", "stdiologger.md", ], url: "/docs/reference/config/mixer/adapters/stdioLogger.html", title: "stdioLogger", order: 80, overview: "stdioLogger adapter configuration schema"}); docs.push({path: [ "config", "mixer", "aspects", "accesslogs.md", ], url: "/docs/reference/config/mixer/aspects/accessLogs.html", title: "accessLogs", order: 1120, overview: "accessLogs aspect configuration schema"}); docs.push({path: [ "config", "mixer", "aspects", "applicationlogs.md", ], url: "/docs/reference/config/mixer/aspects/applicationLogs.html", title: "applicationLogs", order: 1130, overview: "applicationLogs aspect configuration schema"}); docs.push({path: [ "config", "mixer", "aspects", "attributes.md", ], url: "/docs/reference/config/mixer/aspects/attributes.html", title: "attributes", order: 1140, overview: "attributes aspect configuration schema"}); docs.push({path: [ "config", "mixer", "aspects", "denials.md", ], url: "/docs/reference/config/mixer/aspects/denials.html", title: "denials", order: 1150, overview: "denials aspect configuration schema"}); docs.push({path: [ "config", "mixer", "aspects", "index.md", ], url: "/docs/reference/config/mixer/aspects/index.html", title: "Aspects", order: 2000, overview: "Generated documentation for Mixer's aspects."}); docs.push({path: [ "config", "mixer", "aspects", "lists.md", ], url: "/docs/reference/config/mixer/aspects/lists.html", title: "lists", order: 1160, overview: "lists aspect configuration schema"}); docs.push({path: [ "config", "mixer", "aspects", "metrics.md", ], url: "/docs/reference/config/mixer/aspects/metrics.html", title: "metrics", order: 1170, overview: "metrics aspect configuration schema"}); docs.push({path: [ "config", "mixer", "aspects", "quotas.md", ], url: "/docs/reference/config/mixer/aspects/quotas.html", title: "quotas", order: 1180, overview: "quotas aspect configuration schema"}); docs.push({path: [ "config", "mixer", "attribute-vocabulary.md", ], url: "/docs/reference/config/mixer/attribute-vocabulary.html", title: "Attribute Vocabulary", order: 10, overview: "Describes the base attribute vocabulary used for policy and control."}); docs.push({path: [ "config", "mixer", "expression-language.md", ], url: "/docs/reference/config/mixer/expression-language.html", title: "Expression Language", order: 43, overview: "Mixer config expression language reference."}); docs.push({path: [ "config", "mixer", "index.md", ], url: "/docs/reference/config/mixer/index.html", title: "Mixer", order: 10, overview: "Detailed information on configuration and API exposed by Mixer."}); docs.push({path: [ "config", "mixer", "mixer-config.md", ], url: "/docs/reference/config/mixer/mixer-config.html", title: "Mixer", order: 1190, overview: "Mixer's configuration schema"}); docs.push({path: [ "config", "service-mesh.md", ], url: "/docs/reference/config/service-mesh.html", title: "Service Mesh", order: 30, overview: "Global configuration schema"}); docs.push({path: [ "config", "traffic-rules", "destination-policies.md", ], url: "/docs/reference/config/traffic-rules/destination-policies.html", title: "Destination Policies", order: 30, overview: "Client-side traffic management policies configuration schema"}); docs.push({path: [ "config", "traffic-rules", "index.md", ], url: "/docs/reference/config/traffic-rules/index.html", title: "Traffic Management Rules", order: 10, overview: "Detailed information on rules configuration and API exposed by Pilot for managing them."}); docs.push({path: [ "config", "traffic-rules", "routing-rules.md", ], url: "/docs/reference/config/traffic-rules/routing-rules.html", title: "Routing Rules", order: 20, overview: "Traffic routing rule configuration schema"}); docs.push({path: [ "contribute", "creating-a-pull-request.md", ], url: "/docs/reference/contribute/creating-a-pull-request.html", title: "Creating a Pull Request", order: 20, overview: "Shows you how to create a GitHub pull request in order to submit your docs for approval."}); docs.push({path: [ "contribute", "editing.md", ], url: "/docs/reference/contribute/editing.html", title: "Editing Docs", order: 10, overview: "Lets you start editing this site's documentation."}); docs.push({path: [ "contribute", "index.md", ], url: "/docs/reference/contribute/index.html", title: "Contributing to the Docs", order: 100, overview: "Learn how to contribute to improve and expand the Istio documentation."}); docs.push({path: [ "contribute", "reviewing-doc-issues.md", ], url: "/docs/reference/contribute/reviewing-doc-issues.html", title: "Doc Issues", order: 60, overview: "Explains the process involved in accepting documentation updates."}); docs.push({path: [ "contribute", "staging-your-changes.md", ], url: "/docs/reference/contribute/staging-your-changes.html", title: "Staging Your Changes", order: 40, overview: "Explains how to test your changes locally before submitting them."}); docs.push({path: [ "contribute", "style-guide.md", ], url: "/docs/reference/contribute/style-guide.html", title: "Style Guide", order: 70, overview: "Explains the dos and donts of writing Istio docs."}); docs.push({path: [ "contribute", "writing-a-new-topic.md", ], url: "/docs/reference/contribute/writing-a-new-topic.html", title: "Writing a New Topic", order: 30, overview: "Explains the mechanics of creating new documentation pages."}); docs.push({path: [ "glossary.md", ], url: "/docs/reference/glossary.html", title: "Glossary", order: 40, overview: "A glossary of common Istio terms."}); docs.push({path: [ "index.md", ], url: "/docs/reference/index.html", title: "Reference", order: 40, overview: "The Reference section contains detailed authoritative reference material such as command-line options, configuration options, and API calling parameters."}); docs.push({path: [ "release-notes.md", ], url: "/docs/reference/release-notes.html", title: "Release Notes", order: 50, overview: "What's been happening with Istio."}); docs.push({path: [ "release-roadmap.md", ], url: "/docs/reference/release-roadmap.html", title: "Roadmap", order: 60, overview: "What Istio will become in the coming months."}); docs.push({path: [ "writing-config.md", ], url: "/docs/reference/writing-config.html", title: "Writing Configuration", order: 70, overview: "How to write Istio config YAML content."}); genNavBarTree(docs) </script></ul></div><div id="tab-container" class="col-xs-1 tab-neg-margin pull-left"> <a id="sidebar-tab" class="glyphicon glyphicon-chevron-left" href="javascript:void 0;"></a></div><div id="content-container" class="thin-left-border col-sm-9 markdown"><div id="toc" class="toc"></div><div id="doc-content"><h1>istioctl</h1><p><a name="istioctl_cmd"></a></p><h2 id="istioctl">istioctl</h2><p>Istio control interface</p><h3 id="synopsis">Synopsis</h3><p>Istio configuration command line utility.</p><p>Create, list, modify, and delete configuration resources in the Istio system.</p><p>Available routing and traffic management configuration types:</p><pre><code>[destination-policy ingress-rule route-rule]
|
||
</code></pre><p>See <a href="/v0.1/docs/reference/config/traffic-rules/routing-rules.html">here</a> for an overview of routing rules and destination policies.</p><p>More information on Mixer’s API configuration can be found under the istioctl mixer command documentation.</p><h3 id="options">Options</h3><pre><code> --kube Use Kubernetes client to send API requests to Pilot service (default true)
|
||
-c, --kubeconfig string Use a Kubernetes configuration file instead of in-cluster configuration
|
||
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
|
||
--configAPIservice string Name of Pilot service. When --kube=false this sets the address of the Pilot service (default "istio-pilot:8081")
|
||
-n, --namespace string Select a Kubernetes namespace (default "default")
|
||
-v, --v Level log level for V logs
|
||
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
|
||
</code></pre><p><a name="istioctl_completion"></a></p><h2 id="istioctl-completion">istioctl completion</h2><p>Generate bash completion for Istioctl</p><h3 id="synopsis-1">Synopsis</h3><p>Output shell completion code for the bash shell. The shell output must be evaluated to provide interactive completion of istioctl commands.</p><pre><code>istioctl completion
|
||
</code></pre><h3 id="examples">Examples</h3><pre><code>
|
||
# Add the following to .bash_profile.
|
||
source <(istioctl completion)
|
||
|
||
# Create a separate completion file and source that from .bash_profile
|
||
istioctl completion > ~/.istioctl-complete.bash
|
||
echo "source ~/.istioctl-complete.bash" >> ~/.bash_profile
|
||
|
||
</code></pre><h3 id="options-inherited-from-parent-commands">Options inherited from parent commands</h3><pre><code> --kube Use Kubernetes client to send API requests to Pilot service (default true)
|
||
-c, --kubeconfig string Use a Kubernetes configuration file instead of in-cluster configuration
|
||
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
|
||
--configAPIservice string Name of Pilot service. When --kube=false this sets the address of the Pilot service (default "istio-pilot:8081")
|
||
-n, --namespace string Select a Kubernetes namespace (default "default")
|
||
-v, --v Level log level for V logs
|
||
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
|
||
</code></pre><p><a name="istioctl_create"></a></p><h2 id="istioctl-create">istioctl create</h2><p>Create policies and rules</p><h3 id="synopsis-2">Synopsis</h3><p>Create policies and rules</p><pre><code>istioctl create
|
||
</code></pre><h3 id="examples-1">Examples</h3><pre><code>
|
||
istioctl create -f example-routing.yaml
|
||
|
||
</code></pre><h3 id="options-1">Options</h3><pre><code> -f, --file string Input file with the content of the configuration objects (if not set, command reads from the standard input)
|
||
</code></pre><h3 id="options-inherited-from-parent-commands-1">Options inherited from parent commands</h3><pre><code> --kube Use Kubernetes client to send API requests to Pilot service (default true)
|
||
-c, --kubeconfig string Use a Kubernetes configuration file instead of in-cluster configuration
|
||
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
|
||
--configAPIservice string Name of Pilot service. When --kube=false this sets the address of the Pilot service (default "istio-pilot:8081")
|
||
-n, --namespace string Select a Kubernetes namespace (default "default")
|
||
-v, --v Level log level for V logs
|
||
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
|
||
</code></pre><p><a name="istioctl_delete"></a></p><h2 id="istioctl-delete">istioctl delete</h2><p>Delete policies or rules</p><h3 id="synopsis-3">Synopsis</h3><p>Delete policies or rules</p><pre><code>istioctl delete
|
||
</code></pre><h3 id="examples-2">Examples</h3><pre><code>
|
||
# Delete a rule using the definition in example-routing.yaml.
|
||
istioctl delete -f example-routing.yaml
|
||
|
||
# Delete the rule productpage-default
|
||
istioctl delete route-rule productpage-default
|
||
|
||
</code></pre><h3 id="options-2">Options</h3><pre><code> -f, --file string Input file with the content of the configuration objects (if not set, command reads from the standard input)
|
||
</code></pre><h3 id="options-inherited-from-parent-commands-2">Options inherited from parent commands</h3><pre><code> --kube Use Kubernetes client to send API requests to Pilot service (default true)
|
||
-c, --kubeconfig string Use a Kubernetes configuration file instead of in-cluster configuration
|
||
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
|
||
--configAPIservice string Name of Pilot service. When --kube=false this sets the address of the Pilot service (default "istio-pilot:8081")
|
||
-n, --namespace string Select a Kubernetes namespace (default "default")
|
||
-v, --v Level log level for V logs
|
||
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
|
||
</code></pre><p><a name="istioctl_get"></a></p><h2 id="istioctl-get">istioctl get</h2><p>Retrieve policies and rules</p><h3 id="synopsis-4">Synopsis</h3><p>Retrieve policies and rules</p><pre><code>istioctl get
|
||
</code></pre><h3 id="examples-3">Examples</h3><pre><code>
|
||
# List all route rules
|
||
istioctl get route-rules
|
||
|
||
# List all destination policies
|
||
istioctl get destination-policies
|
||
|
||
# Get a specific rule named productpage-default
|
||
istioctl get route-rule productpage-default
|
||
|
||
</code></pre><h3 id="options-3">Options</h3><pre><code> -o, --output string Output format. One of:yaml|short (default "short")
|
||
</code></pre><h3 id="options-inherited-from-parent-commands-3">Options inherited from parent commands</h3><pre><code> --kube Use Kubernetes client to send API requests to Pilot service (default true)
|
||
-c, --kubeconfig string Use a Kubernetes configuration file instead of in-cluster configuration
|
||
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
|
||
--configAPIservice string Name of Pilot service. When --kube=false this sets the address of the Pilot service (default "istio-pilot:8081")
|
||
-n, --namespace string Select a Kubernetes namespace (default "default")
|
||
-v, --v Level log level for V logs
|
||
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
|
||
</code></pre><p><a name="istioctl_kube-inject"></a></p><h2 id="istioctl-kube-inject">istioctl kube-inject</h2><p>Inject Envoy sidecar into Kubernetes pod resources</p><h3 id="synopsis-5">Synopsis</h3><p>Automatic Envoy sidecar injection via k8s admission controller is not ready yet. Instead, use kube-inject to manually inject Envoy sidecar into Kubernetes resource files. 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. Its best to do this when the resource is initially created.</p><p>k8s.io/docs/concepts/workloads/pods/pod-overview/#pod-templates is updated for Job, DaemonSet, ReplicaSet, and Deployment YAML resource documents. Support for additional pod-based resource types can be added as necessary.</p><p>The Istio project is continually evolving so the Istio sidecar configuration may change unannounced. When in doubt re-run istioctl kube-inject on deployments to get the most up-to-date changes.</p><pre><code>istioctl kube-inject
|
||
</code></pre><h3 id="examples-4">Examples</h3><pre><code>
|
||
# Update resources on the fly before applying.
|
||
kubectl apply -f <(istioctl kube-inject -f <resource.yaml>)
|
||
|
||
# Create a persistent version of the deployment with Envoy sidecar
|
||
# injected. This is particularly useful to understand what is
|
||
# being injected before committing to Kubernetes API server.
|
||
istioctl kube-inject -f deployment.yaml -o deployment-with-istio.yaml
|
||
|
||
# Update an existing deployment.
|
||
kubectl get deployment -o yaml | istioctl kube-inject -f - | kubectl apply -f -
|
||
|
||
</code></pre><h3 id="options-4">Options</h3><pre><code> --coreDump Enable/Disable core dumps in injected Envoy sidecar (--coreDump=true affects all pods in a node and should only be used the cluster admin) (default true)
|
||
-f, --filename string Input Kubernetes resource filename
|
||
--hub string Docker hub
|
||
--includeIPRanges string Comma separated list of IP ranges in CIDR form. If set, only redirect outbound traffic to Envoy for IP ranges. Otherwise all outbound traffic is redirected
|
||
--meshConfig string ConfigMap name for Istio mesh configuration, key should be "mesh" (default "istio")
|
||
-o, --output string Modified output Kubernetes resource filename
|
||
--setVersionString string Override version info injected into resource
|
||
--sidecarProxyUID int Envoy sidecar UID (default 1337)
|
||
--tag string Docker tag
|
||
--verbosity int Runtime verbosity (default 2)
|
||
</code></pre><h3 id="options-inherited-from-parent-commands-4">Options inherited from parent commands</h3><pre><code> --kube Use Kubernetes client to send API requests to Pilot service (default true)
|
||
-c, --kubeconfig string Use a Kubernetes configuration file instead of in-cluster configuration
|
||
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
|
||
--configAPIservice string Name of Pilot service. When --kube=false this sets the address of the Pilot service (default "istio-pilot:8081")
|
||
-n, --namespace string Select a Kubernetes namespace (default "default")
|
||
-v, --v Level log level for V logs
|
||
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
|
||
</code></pre><p><a name="istioctl_mixer"></a></p><h2 id="istioctl-mixer">istioctl mixer</h2><p>Istio Mixer configuration</p><h3 id="synopsis-6">Synopsis</h3><p>The Mixer configuration API allows users to configure all facets of the Mixer.</p><p>See <a href="/v0.1/docs/concepts/policy-and-control/mixer-config.html">mixer-config</a> for a description of Mixer configuration’s scope, subject, and rules.</p><h3 id="options-5">Options</h3><pre><code> --mixer string (deprecated) Address of the Mixer configuration server as <host>:<port>
|
||
--mixerAPIService string Name of istio-mixer service. When --kube=false this sets Mixer's address (default "istio-mixer:9094")
|
||
</code></pre><h3 id="options-inherited-from-parent-commands-5">Options inherited from parent commands</h3><pre><code> --kube Use Kubernetes client to send API requests to Pilot service (default true)
|
||
-c, --kubeconfig string Use a Kubernetes configuration file instead of in-cluster configuration
|
||
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
|
||
--configAPIservice string Name of Pilot service. When --kube=false this sets the address of the Pilot service (default "istio-pilot:8081")
|
||
-n, --namespace string Select a Kubernetes namespace (default "default")
|
||
-v, --v Level log level for V logs
|
||
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
|
||
</code></pre><p><a name="istioctl_mixer_rule_create"></a></p><h2 id="istioctl-mixer-rule-create">istioctl mixer rule create</h2><p>Create Istio Mixer rules</p><h3 id="synopsis-7">Synopsis</h3><p>Create Istio Mixer rules</p><pre><code>istioctl mixer rule create
|
||
</code></pre><h3 id="examples-5">Examples</h3><pre><code>
|
||
# Create a new Mixer rule for the given scope and subject.
|
||
istioctl mixer rule create global myservice.ns.svc.cluster.local -f mixer-rule.yml
|
||
|
||
</code></pre><h3 id="options-6">Options</h3><pre><code> -f, --file string Input file with contents of the Mixer rule
|
||
</code></pre><h3 id="options-inherited-from-parent-commands-6">Options inherited from parent commands</h3><pre><code> --kube Use Kubernetes client to send API requests to Pilot service (default true)
|
||
-c, --kubeconfig string Use a Kubernetes configuration file instead of in-cluster configuration
|
||
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
|
||
--configAPIservice string Name of Pilot service. When --kube=false this sets the address of the Pilot service (default "istio-pilot:8081")
|
||
--mixer string (deprecated) Address of the Mixer configuration server as <host>:<port>
|
||
--mixerAPIService string Name of istio-mixer service. When --kube=false this sets the Mixer's address (default
|
||
"istio-mixer:9094")
|
||
-n, --namespace string Select a Kubernetes namespace (default "default")
|
||
-v, --v Level log level for V logs
|
||
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
|
||
</code></pre><p><a name="istioctl_mixer_rule_get"></a></p><h2 id="istioctl-mixer-rule-get">istioctl mixer rule get</h2><p>Get Istio Mixer rules</p><h3 id="synopsis-8">Synopsis</h3><p>Get a Mixer rule for a given scope and subject.</p><pre><code>istioctl mixer rule get
|
||
</code></pre><h3 id="examples-6">Examples</h3><pre><code>
|
||
# Get the Mixer rule with scope='global' and subject='myservice.ns.svc.cluster.local'
|
||
istioctl mixer rule get global myservice.ns.svc.cluster.local
|
||
|
||
</code></pre><h3 id="options-inherited-from-parent-commands-7">Options inherited from parent commands</h3><pre><code> --kube Use Kubernetes client to send API requests to Pilot service (default true)
|
||
-c, --kubeconfig string Use a Kubernetes configuration file instead of in-cluster configuration
|
||
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
|
||
--configAPIservice string Name of Pilot service. When --kube=false this sets the address of the Pilot service (default "istio-pilot:8081")
|
||
--mixer string (deprecated) Address of the Mixer configuration server as <host>:<port>
|
||
--mixerAPIService string Name of istio-mixer service. When --kube=false this sets Mixer's address (default
|
||
"istio-mixer:9094")
|
||
-n, --namespace string Select a Kubernetes namespace (default "default")
|
||
-v, --v Level log level for V logs
|
||
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
|
||
</code></pre><p><a name="istioctl_mixer_rule"></a></p><h2 id="istioctl-mixer-rule">istioctl mixer rule</h2><p>Istio Mixer Rule configuration</p><h3 id="synopsis-9">Synopsis</h3><p>Create and list Mixer rules in the configuration server.</p><h3 id="options-inherited-from-parent-commands-8">Options inherited from parent commands</h3><pre><code> --kube Use Kubernetes client to send API requests to Pilot service (default true)
|
||
-c, --kubeconfig string Use a Kubernetes configuration file instead of in-cluster configuration
|
||
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
|
||
--configAPIservice string Name of Pilot service. When --kube=false this sets the address of the Pilot service (default "istio-pilot:8081")
|
||
--mixer string (deprecated) Address of the Mixer configuration server as <host>:<port>
|
||
--mixerAPIService string Name of istio-mixer service. When --kube=false this sets Mixer's address (default "istio-mixer:9094")
|
||
-n, --namespace string Select a Kubernetes namespace (default "default")
|
||
-v, --v Level log level for V logs
|
||
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
|
||
</code></pre><p><a name="istioctl_replace"></a></p><h2 id="istioctl-replace">istioctl replace</h2><p>Replace existing policies and rules</p><h3 id="synopsis-10">Synopsis</h3><p>Replace existing policies and rules</p><pre><code>istioctl replace
|
||
</code></pre><h3 id="examples-7">Examples</h3><pre><code>
|
||
istioctl replace -f example-routing.yaml
|
||
|
||
</code></pre><h3 id="options-7">Options</h3><pre><code> -f, --file string Input file with the content of the configuration objects (if not set, command reads from the standard input)
|
||
</code></pre><h3 id="options-inherited-from-parent-commands-9">Options inherited from parent commands</h3><pre><code> --kube Use Kubernetes client to send API requests to Pilot service (default true)
|
||
-c, --kubeconfig string Use a Kubernetes configuration file instead of in-cluster configuration
|
||
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
|
||
--configAPIservice string Name of Pilot service. When --kube=false this sets the address of the Pilot service (default "istio-pilot:8081")
|
||
-n, --namespace string Select a Kubernetes namespace (default "default")
|
||
-v, --v Level log level for V logs
|
||
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
|
||
</code></pre><p><a name="istioctl_version"></a></p><h2 id="istioctl-version">istioctl version</h2><p>Display version information and exit</p><h3 id="synopsis-11">Synopsis</h3><p>Display version information and exit</p><pre><code>istioctl version
|
||
</code></pre><h3 id="options-inherited-from-parent-commands-10">Options inherited from parent commands</h3><pre><code> --kube Use Kubernetes client to send API requests to Pilot service (default true)
|
||
-c, --kubeconfig string Use a Kubernetes configuration file instead of in-cluster configuration
|
||
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
|
||
--configAPIservice string Name of Pilot service. When --kube=false this sets the address of the Pilot service (default "istio-pilot:8081")
|
||
-n, --namespace string Select a Kubernetes namespace (default "default")
|
||
-v, --v Level log level for V logs
|
||
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
|
||
</code></pre></div></div></div></div></div></div><script src="/v0.1/js/sidemenu.js"></script><footer><div class="container"><div class="row"><div class="col-md-2"></div><div class="col-md-3 col-sm-4 col-xs-12 center-block"><ul class="toggle"><p class="header">Docs</p><li><a href="/v0.1/docs/">Welcome</a></li><li><a href="/v0.1/docs/concepts">Concepts</a></li><li><a href="/v0.1/docs/tasks">Tasks</a></li><li><a href="/v0.1/docs/samples">Samples</a></li><li><a href="/v0.1/docs/reference">Reference</a></li></ul></div><hr class="footer-sections" /><div class="col-md-3 col-sm-4 col-xs-12 center-block"><ul class="toggle"><p class="header">Resources</p><li><a href="/v0.1/faq">Frequently Asked Questions</a></li><li><a href="/v0.1/troubleshooting">Troubleshooting Guide</a></li><li><a href="/v0.1/bugs">Report a Bug</a></li><li><a href="https://github.com/istio/istio.github.io/issues/new?title=Issue with _docs/reference/commands/istioctl.md">Report a Doc Issue</a></li><li><a href="https://github.com/istio/istio.github.io/edit/master/_docs/reference/commands/istioctl.md">Edit This Page on GitHub</a></li></ul></div><hr class="footer-sections" /><div class="col-md-3 col-sm-4 col-xs-12 center-block"><ul class="toggle"><p class="header">Community</p><li><a href="https://groups.google.com/forum/#!forum/istio-users" target="_blank"><span class="group">User</span></a> | <a href="https://groups.google.com/forum/#!forum/istio-dev" target="_blank">Dev Mailing Lists</a></li><li><a href="https://twitter.com/IstioMesh" target="_blank"><span class="twitter">Twitter</span></a></li><li><a href="https://github.com/istio/istio" target="_blank"><span class="github">GitHub</span></a></li></ul></div><div class="col-md-1"></div></div><div class="row"><p class="description small text-center"> Copyright © 2017 Istio Authors<br> Istio 0.1<br> Archived on 20-Jul-2017</p></div></div></footer><script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.15.0/jquery.validate.min.js"></script> <script src="/v0.1/js/jquery.form.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script> <script src="/v0.1/js/slick.min.js"></script> <script src="/v0.1/js/jquery.visible.min.js"></script> <script src="/v0.1/js/common.js" type="text/javascript" charset="utf-8"></script> <script src="/v0.1/js/buttons.js"></script> <script src="/v0.1/js/search.js"></script> <script src="/v0.1/js/prism.js"></script></body></html>
|