istio.io/archive/v1.2/test/tb/index.html

148 lines
17 KiB
HTML

<!doctype html><html lang=en itemscope itemtype=https://schema.org/WebPage><head><meta charset=utf-8><meta http-equiv=x-ua-compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name=theme-color content=#466BB0><meta name=title content="Text Blocks"><meta name=description content="Basic text blocks."><meta name=keywords content=microservices,services,mesh><meta property=og:title content="Text Blocks"><meta property=og:type content=website><meta property=og:description content="Basic text blocks."><meta property=og:url content=/v1.2/test/tb/><meta property=og:image content=/v1.2/img/istio-whitelogo-bluebackground-framed.svg><meta property=og:image:alt content="Istio Logo"><meta property=og:image:width content=112><meta property=og:image:height content=150><meta property=og:site_name content=Istio><meta name=twitter:card content=summary><meta name=twitter:site content=@IstioMesh><title>Istioldie 1.2 / Text Blocks</title><script async src="https://www.googletagmanager.com/gtag/js?id=UA-98480406-2"></script><script>window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}
gtag('js',new Date());gtag('config','UA-98480406-2');</script><link rel=alternate type=application/rss+xml title="Istio Blog" href=/v1.2/feed.xml><link rel="shortcut icon" href=/v1.2/favicons/favicon.ico><link rel=apple-touch-icon href=/v1.2/favicons/apple-touch-icon-180x180.png sizes=180x180><link rel=icon type=image/png href=/v1.2/favicons/favicon-16x16.png sizes=16x16><link rel=icon type=image/png href=/v1.2/favicons/favicon-32x32.png sizes=32x32><link rel=icon type=image/png href=/v1.2/favicons/android-36x36.png sizes=36x36><link rel=icon type=image/png href=/v1.2/favicons/android-48x48.png sizes=48x48><link rel=icon type=image/png href=/v1.2/favicons/android-72x72.png sizes=72x72><link rel=icon type=image/png href=/v1.2/favicons/android-96x96.png sizes=96xW96><link rel=icon type=image/png href=/v1.2/favicons/android-144x144.png sizes=144x144><link rel=icon type=image/png href=/v1.2/favicons/android-192x192.png sizes=192x192><link rel=manifest href=/v1.2/manifest.json><meta name=apple-mobile-web-app-title content=Istio><meta name=application-name content=Istio><link rel=stylesheet href="https://fonts.googleapis.com/css?family=Work+Sans:400|Chivo:400|Work+Sans:500,300,600,300italic,400italic,500italic,600italic|Chivo:500,300,600,300italic,400italic,500italic,600italic"><link rel=stylesheet href=/v1.2/css/all.css><script src=/v1.2/js/themes_init.min.js></script></head><body class="language-unknown archive-site"><script>const branchName="release-1.2";const docTitle="Text Blocks";const iconFile="\/v1.2/img/icons.svg";const buttonCopy='Copy to clipboard';const buttonPrint='Print';const buttonDownload='Download';</script><script src="https://www.google.com/cse/brand?form=search-form" defer></script><script src=/v1.2/js/all.min.js data-manual defer></script><header><nav><a id=brand href=/v1.2/><span class=logo><svg viewBox="0 0 300 300"><circle cx="150" cy="150" r="146" stroke-width="2" /><path d="M65 240H225L125 270z"/><path d="M65 230l60-10V110z"/><path d="M135 220l90 10L135 30z"/></svg></span><span class=name>Istioldie 1.2</span></a><div id=hamburger><svg class="icon"><use xlink:href="/v1.2/img/icons.svg#hamburger"/></svg></div><div id=header-links><a title="Learn how to deploy, use, and operate Istio." href=/v1.2/docs/>Docs</a>
<a title="Posts about using Istio." href=/v1.2/blog/2019/announcing-1.2.5/>Blog</a>
<a title="Frequently Asked Questions about Istio." href=/v1.2/faq/>FAQ</a>
<a title="Get a bit more in-depth info about the Istio project." href=/v1.2/about/>About</a><div class=menu><button id=gearDropdownButton class=menu-trigger title="Options and settings" aria-label="Options and Settings" aria-controls=gearDropdownContent><svg class="icon"><use xlink:href="/v1.2/img/icons.svg#gear"/></svg></button><div id=gearDropdownContent class=menu-content aria-labelledby=gearDropdownButton role=menu><a tabindex=-1 role=menuitem lang=en id=switch-lang-en class=active>English</a>
<a tabindex=-1 role=menuitem lang=zh id=switch-lang-zh>中文</a><div role=separator></div><a tabindex=-1 role=menuitem class=active id=light-theme-item>Light Theme</a>
<a tabindex=-1 role=menuitem id=dark-theme-item>Dark Theme</a><div role=separator></div><a tabindex=-1 role=menuitem id=syntax-coloring-item>Color Examples</a><div role=separator></div><h6>Other versions of this site</h6><a tabindex=-1 role=menuitem onclick="navigateToUrlOrRoot('https://istio.io/test\/tb\/');return false;">Current Release</a>
<a tabindex=-1 role=menuitem onclick="navigateToUrlOrRoot('https://preliminary.istio.io/test\/tb\/');return false;">Next Release</a>
<a tabindex=-1 role=menuitem href=https://archive.istio.io>Older Releases</a></div></div><button id=search-show title="Search this site" aria-label=Search><svg class="icon"><use xlink:href="/v1.2/img/icons.svg#magnifier"/></svg></button></div><form id=search-form name=cse 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>
<input type=hidden id=search-page-url value=/v1.2/search.html>
<input id=search-textbox class=form-control name=q type=search aria-label="Search this site">
<button id=search-close title="Cancel search" type=reset aria-label="Cancel search"><svg class="icon"><use xlink:href="/v1.2/img/icons.svg#cancel-x"/></svg></button></form></nav></header><main class="primary notoc"><div id=sidebar-container class="sidebar-container sidebar-offcanvas"><nav id=sidebar aria-label="Section Navigation"><div class=directory><div class=card><div id=header0 class=header title="Bunch 'o tests for the the web site infrastructure, no useful content here.">Tests</div><div class="body default" aria-labelledby=header0><ul role=tree aria-expanded=true class=leaf-section aria-labelledby=header0><li role=none><a role=treeitem title="Basic boilerplates." href=/v1.2/test/boil/>Boilerplates</a></li><li role=none><a role=treeitem title="Composing boilerplates and lists." href=/v1.2/test/boil_and_lists/>Boilerplates and Lists</a></li><li role=none><a role=treeitem title="Plain callouts." href=/v1.2/test/callouts/>Callouts</a></li><li role=none><a role=treeitem title="Composing callouts and lists." href=/v1.2/test/callouts_and_lists/>Callouts and Lists</a></li><li role=none><a role=treeitem title="Basic tabs." href=/v1.2/test/tabs/>Tabs</a></li><li role=none><a role=treeitem title="Composing tabs and lists." href=/v1.2/test/tabs_and_lists/>Tabs and Lists</a></li><li role=none><span role=treeitem class=current title="Basic text blocks.">Text Blocks</span></li><li role=none><a role=treeitem title="Composing text blocks and lists." href=/v1.2/test/tb_and_lists/>Text Blocks and Lists</a></li></ul></div></div></div></nav></div><div class=article-container><nav aria-label=Breadcrumb><ol><li><a href=/v1.2/ title="Connect, secure, control, and observe services.">Istio</a></li><li><a href=/v1.2/test/ title="Bunch 'o tests for the the web site infrastructure, no useful content here.">Tests</a></li><li>Text Blocks</li></ol></nav><article aria-labelledby=title><div class=title-area><div><h1 id=title>Text Blocks</h1><p class=byline><span title="399 words"><svg class="icon"><use xlink:href="/v1.2/img/icons.svg#clock"/></svg><span>&nbsp;</span>2 minute read</span></p></div></div><p>Plain text block with html tag</p><pre><code class=language-plain data-expandlinks=true>$ kubectl get svc -n istio-system
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S)
grafana ClusterIP 172.21.211.123 &lt;none&gt; 3000/TCP
...
</code></pre><p>Bash text block with plain output</p><pre><code class=language-bash data-expandlinks=true>$ this is a text block
$ echo Foo \
Bar
Foo Bar
</code></pre><p>Bash text block with redirection</p><pre><code class=language-bash data-expandlinks=true>$ kubectl apply -f - &lt;&lt;EOF
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
</code></pre><p>Bash text block with html tag</p><pre><code class=language-bash data-expandlinks=true>$ kubectl get svc -n istio-system
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S)
grafana ClusterIP 172.21.211.123 &lt;none&gt; 3000/TCP
...
</code></pre><p>Bash text block with yaml output and download name</p><pre><code class=language-bash data-expandlinks=true data-downloadas=foo.yaml data-outputis=yaml>$ kubectl -n istio-system get configmap istio-galley-configuration -o jsonpath=&#39;{.data}&#39;
map[validatingwebhookconfiguration.yaml:apiVersion: admissionregistration.k8s.io/v1beta1
kind: ValidatingWebhookConfiguration
metadata:
name: istio-galley
namespace: istio-system
labels:
app: istio-galley
chart: galley-1.0.0
release: istio
heritage: Tiller
webhooks:
- name: pilot.validation.istio.io
clientConfig:
service:
name: istio-galley
namespace: istio-system
path: &#34;/admitpilot&#34;
caBundle: &#34;&#34;
rules:
- operations:
(... snip ...)
</code></pre><p>Bash text block with json output and download name</p><pre><code class=language-bash data-expandlinks=true data-downloadas=foo.txt data-outputis=json>$ kubectl logs -n istio-system -l istio-mixer-type=telemetry -c mixer | grep \&#34;instance\&#34;:\&#34;newlog.logentry.istio-system\&#34; | grep -v &#39;&#34;destination&#34;:&#34;telemetry&#34;&#39; | grep -v &#39;&#34;destination&#34;:&#34;pilot&#34;&#39; | grep -v &#39;&#34;destination&#34;:&#34;policy&#34;&#39; | grep -v &#39;&#34;destination&#34;:&#34;unknown&#34;&#39;
{&#34;level&#34;:&#34;warn&#34;,&#34;time&#34;:&#34;2018-09-15T20:46:36.009801Z&#34;,&#34;instance&#34;:&#34;newlog.logentry.istio-system&#34;,&#34;destination&#34;:&#34;details&#34;,&#34;latency&#34;:&#34;13.601485ms&#34;,&#34;responseCode&#34;:200,&#34;responseSize&#34;:178,&#34;source&#34;:&#34;productpage&#34;,&#34;user&#34;:&#34;unknown&#34;}
{&#34;level&#34;:&#34;warn&#34;,&#34;time&#34;:&#34;2018-09-15T20:46:36.026993Z&#34;,&#34;instance&#34;:&#34;newlog.logentry.istio-system&#34;,&#34;destination&#34;:&#34;reviews&#34;,&#34;latency&#34;:&#34;919.482857ms&#34;,&#34;responseCode&#34;:200,&#34;responseSize&#34;:295,&#34;source&#34;:&#34;productpage&#34;,&#34;user&#34;:&#34;unknown&#34;}
{&#34;level&#34;:&#34;warn&#34;,&#34;time&#34;:&#34;2018-09-15T20:46:35.982761Z&#34;,&#34;instance&#34;:&#34;newlog.logentry.istio-system&#34;,&#34;destination&#34;:&#34;productpage&#34;,&#34;latency&#34;:&#34;968.030256ms&#34;,&#34;responseCode&#34;:200,&#34;responseSize&#34;:4415,&#34;source&#34;:&#34;istio-ingressgateway&#34;,&#34;user&#34;:&#34;unknown&#34;}
</code></pre><p>File-based text block</p><pre><code class=language-plain data-expandlinks=true data-downloadas=snippet_example.txt>BEFORE
# $snippet SNIP1
This is chunk 1
on two lines
# $endsnippet
# $snippet SNIP2
This is chunk 2
# $endsnippet
# $snippet SNIP1
This is chunk 3
# $endsnippet
AFTER
</code></pre><p>File-based text block with snippet extraction and download name</p><pre><code class=language-plain data-expandlinks=true data-downloadas=foo.txt>This is chunk 2</code></pre><p>File-based bash text block with download name</p><pre><code class=language-bash data-expandlinks=true data-downloadas=foo.sh>$ kubectl apply -f - &lt;&lt;EOF
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: httpbin
spec:
hosts:
- &#34;*&#34;
gateways:
- httpbin-gateway
http:
- match:
- uri:
prefix: /headers
- uri:
prefix: /status
route:
- destination:
port:
number: 8000
host: httpbin
EOF
</code></pre><p>URL-based text block</p><div><a data-skipendnotes=true style=display:none href=https://raw.githubusercontent.com/istio/istio.io/master/test/snippet_example.txt>Zip</a><pre><code class=language-plain data-expandlinks=true data-downloadas=snippet_example.txt data-src=https://raw.githubusercontent.com/istio/istio.io/master/test/snippet_example.txt></code></pre></div><p>URL-based text block with snippet extraction</p><div><a data-skipendnotes=true style=display:none href=https://raw.githubusercontent.com/istio/istio.io/master/test/snippet_example.txt>Zip</a><pre><code class=language-plain data-expandlinks=true data-downloadas=snippet_example.txt data-src=https://raw.githubusercontent.com/istio/istio.io/master/test/snippet_example.txt data-snippet=SNIP1></code></pre></div><p>URL-based text block with redirects</p><div><a data-skipendnotes=true style=display:none href=https://raw.githubusercontent.com/istio/istio.io/master/test/command_example.txt>Zip</a><pre><code class=language-bash data-expandlinks=true data-downloadas=command_example.txt data-src=https://raw.githubusercontent.com/istio/istio.io/master/test/command_example.txt data-outputis=yaml></code></pre></div><p>URL-based text block with @@ content</p><div><a data-skipendnotes=true style=display:none href=https://raw.githubusercontent.com/istio/istio.io/release-1.1/test/command_example_atat.txt>Zip</a><pre><code class=language-bash data-expandlinks=true data-downloadas=command_example_atat.txt data-src=https://raw.githubusercontent.com/istio/istio.io/release-1.1/test/command_example_atat.txt></code></pre></div><p>Very wide text block</p><pre><code class=language-plain data-expandlinks=true>Reeeeeaaaaaalllllllllly lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllong
</code></pre><p>Very tall text block</p><pre><code class=language-plain data-expandlinks=true>Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
Really tall
</code></pre></article><nav class=pagenav><div class=left><a title="Composing tabs and lists." href=/v1.2/test/tabs_and_lists/><svg class="icon"><use xlink:href="/v1.2/img/icons.svg#left-arrow"/></svg>Tabs and Lists</a></div><div class=right><a title="Composing text blocks and lists." href=/v1.2/test/tb_and_lists/>Text Blocks and Lists<svg class="icon"><use xlink:href="/v1.2/img/icons.svg#right-arrow"/></svg></a></div></nav><div id=endnotes-container aria-hidden=true><h2>Links</h2><ol id=endnotes></ol></div></div></main><footer><div class=user-links><a class=channel title="Go download Istio 1.2.5 now" href=https://github.com/istio/istio/releases/tag/1.2.5 aria-label="Download Istio"><span>download</span><svg class="icon"><use xlink:href="/v1.2/img/icons.svg#download"/></svg>
</a><a class=channel title="Join the Istio discussion board to participate in discussions and get help troubleshooting problems" href=https://discuss.istio.io aria-label="Istio discussion board"><span>discuss</span><svg class="icon"><use xlink:href="/v1.2/img/icons.svg#discourse"/></svg></a>
<a class=channel title="Stack Overflow is where you can ask questions and find curated answers on deploying, configuring, and using Istio" href=https://stackoverflow.com/questions/tagged/istio aria-label="Stack Overflow"><span>stack overflow</span><svg class="icon"><use xlink:href="/v1.2/img/icons.svg#stackoverflow"/></svg></a>
<a class=channel title="Interactively discuss issues with the Istio community on Slack" href=https://istio.slack.com aria-label=slack><span>slack</span><svg class="icon"><use xlink:href="/v1.2/img/icons.svg#slack"/></svg></a>
<a class=channel title="Follow us on Twitter to get the latest news" href=https://twitter.com/IstioMesh aria-label=Twitter><span>twitter</span><svg class="icon"><use xlink:href="/v1.2/img/icons.svg#twitter"/></svg></a><div class=tag>for everyone</div></div><div class=info><p class=copyright>Istio Archive
1.2.5<br>&copy; 2019 Istio Authors, <a href=https://policies.google.com/privacy>Privacy Policy</a><br>Archived on September 12, 2019</p></div><div class=dev-links><a class=channel title="GitHub is where development takes place on Istio code" href=https://github.com/istio/community aria-label=GitHub><span>github</span><svg class="icon"><use xlink:href="/v1.2/img/icons.svg#github"/></svg></a>
<a class=channel title="Access our team drive if you'd like to take a look at the Istio technical design documents" href=https://groups.google.com/forum/#!forum/istio-team-drive-access aria-label="team drive"><span>drive</span><svg class="icon"><use xlink:href="/v1.2/img/icons.svg#drive"/></svg></a>
<a class=channel title="If you'd like to contribute to the Istio project, consider participating in our working groups" href=https://github.com/istio/community/blob/master/WORKING-GROUPS.md aria-label="working groups"><span>working groups</span><svg class="icon"><use xlink:href="/v1.2/img/icons.svg#working-groups"/></svg></a><div class=tag>for developers</div></div></footer><div id=scroll-to-top-container aria-hidden=true><button id=scroll-to-top title="Back to top"><svg class="icon"><use xlink:href="/v1.2/img/icons.svg#top"/></svg></button></div></body></html>