33 < head >
44 < meta charset ="utf-8 ">
55 < meta name ="viewport " content ="width=device-width,initial-scale=1 ">
6- < title > Solution Pattern: Name Template :: Solution Patterns for Cloud Native Architectures</ title >
6+ < title > Solution Pattern: Solution Patterns - Optimizing Traffic and Observability with OpenShift Service Mesh 3 :: Solution Patterns for Cloud Native Architectures</ title >
77 < link rel ="canonical " href ="https://redhat-solution-patterns.github.io/solution-patterns/solution-pattern-template/03-demo.html ">
88 < link rel ="prev " href ="02-architecture.html ">
99 < link rel ="next " href ="developer-resources.html ">
@@ -162,7 +162,7 @@ <h3 class="title"><a href="index.html" class=" query-params-link">OpenShift Serv
162162 </ div >
163163 < div class ="content ">
164164< article class ="doc ">
165- < h1 class ="page "> Solution Pattern: Name Template </ h1 >
165+ < h1 class ="page "> Solution Pattern: Solution Patterns - Optimizing Traffic and Observability with OpenShift Service Mesh 3 </ h1 >
166166< h1 id ="_see_the_solution_in_action " class ="sect0 "> < a class ="anchor " href ="#_see_the_solution_in_action "> </ a > < a class ="link " href ="#_see_the_solution_in_action "> See the Solution in Action</ a > </ h1 >
167167< div class ="openblock partintro ">
168168< div class ="content ">
@@ -190,9 +190,9 @@ <h3 id="_cli_tools"><a class="anchor" href="#_cli_tools"></a><a class="link" hre
190190< div class ="paragraph ">
191191< p > To check if you have the CLI tools, open your terminal and use the following command:</ p >
192192</ div >
193- < div class ="listingblock console ">
193+ < div class ="listingblock console-input ">
194194< div class ="content ">
195- < pre > oc version</ pre >
195+ < pre class =" highlightjs highlight " > < code class =" language-shell script hljs " data-lang =" shell script " > oc version</ code > </ pre >
196196</ div >
197197</ div >
198198</ div >
@@ -363,7 +363,7 @@ <h3 id="installing_the_demo"><a class="anchor" href="#installing_the_demo"></a><
363363</ li >
364364</ ul >
365365</ div >
366- < div class ="listingblock console ">
366+ < div class ="listingblock console-input ">
367367< div class ="content ">
368368< pre class ="highlightjs highlight "> < code class ="language-shell script hljs " data-lang ="shell script "> git clone https://github.com/bugbiteme/ossm-3-demo.git</ code > </ pre >
369369</ div >
@@ -377,7 +377,7 @@ <h3 id="_install_operators_and_enable_gateway_api"><a class="anchor" href="#_ins
377377< div class ="paragraph ">
378378< p > Run the following script to install the listed Operators and Gateway API, and wait for it to complete:</ p >
379379</ div >
380- < div class ="listingblock console ">
380+ < div class ="listingblock console-input ">
381381< div class ="content ">
382382< pre class ="highlightjs highlight "> < code class ="language-shell script hljs " data-lang ="shell script "> sh ./install_operators.sh</ code > </ pre >
383383</ div >
@@ -391,7 +391,7 @@ <h3 id="_install_ossm_solution_and_example_applications"><a class="anchor" href=
391391< div class ="paragraph ">
392392< p > Run the following script to implement Service Mesh and the example applications, and wait for it to complete:</ p >
393393</ div >
394- < div class ="listingblock console ">
394+ < div class ="listingblock console-input ">
395395< div class ="content ">
396396< pre class ="highlightjs highlight "> < code class ="language-shell script hljs " data-lang ="shell script "> sh ./install_ossm3_demo.sh</ code > </ pre >
397397</ div >
@@ -433,10 +433,10 @@ <h3 id="_exploring_the_bookinfo_application"><a class="anchor" href="#_exploring
433433< div class ="paragraph ">
434434< p > You can access the main bookinfo page using the Ingress route shown at the end of the demo install script, or run the command:</ p >
435435</ div >
436- < div class ="listingblock ">
436+ < div class ="listingblock console-input ">
437437< div class ="content ">
438- < pre > export INGRESSHOST=$(oc get route istio-ingressgateway -n istio-ingress -o=jsonpath='{.spec.host}')
439- echo http://${ INGRESSHOST} /productpage</ pre >
438+ < pre class =" highlightjs highlight " > < code class =" language-shell script hljs " data-lang =" shell script " > export INGRESSHOST=$(oc get route istio-ingressgateway -n istio-ingress -o=jsonpath='{.spec.host}')
439+ echo http://$INGRESSHOST/productpage</ code > </ pre >
440440</ div >
441441</ div >
442442< div class ="paragraph ">
@@ -450,9 +450,9 @@ <h3 id="_exploring_the_bookinfo_application"><a class="anchor" href="#_exploring
450450< div class ="paragraph ">
451451< p > < code > INGRESSHOST</ code > is the URL provided by the Istio Gateway < code > istio-ingressgateway</ code > , deployed in the < code > istio-ingress</ code > namespace.</ p >
452452</ div >
453- < div class ="listingblock ">
453+ < div class ="listingblock console-input ">
454454< div class ="content ">
455- < pre > oc get deployment -n istio-ingress istio-ingressgateway -o yaml</ pre >
455+ < pre class =" highlightjs highlight " > < code class =" language-shell script hljs " data-lang =" shell script " > oc get deployment -n istio-ingress istio-ingressgateway -o yaml</ code > </ pre >
456456</ div >
457457</ div >
458458< div class ="paragraph ">
@@ -649,10 +649,10 @@ <h4 id="_kiali_view"><a class="anchor" href="#_kiali_view"></a><a class="link" h
649649< div class ="paragraph ">
650650< p > To obtain the Kiali URL, you can run the following commands:</ p >
651651</ div >
652- < div class ="listingblock ">
652+ < div class ="listingblock console-input ">
653653< div class ="content ">
654- < pre class ="highlightjs highlight "> < code class ="language-bash hljs " data-lang ="bash "> export KIALI_HOST=$(oc get route kiali -n istio-system -o=jsonpath='{.spec.host}')
655- echo https://${ KIALI_HOST} </ code > </ pre >
654+ < pre class ="highlightjs highlight "> < code class ="language-shell script hljs " data-lang ="shell script "> export KIALI_HOST=$(oc get route kiali -n istio-system -o=jsonpath='{.spec.host}')
655+ echo https://KIALI_HOST</ code > </ pre >
656656</ div >
657657</ div >
658658< div class ="paragraph ">
@@ -805,12 +805,12 @@ <h3 id="walkthrough_guide"><a class="anchor" href="#walkthrough_guide"></a><a cl
805805< div class ="paragraph ">
806806< p > You can access the front end of the RestAPI using the Ingress route shown at the end of the demo install script, or run the command:</ p >
807807</ div >
808- < div class ="listingblock ">
808+ < div class ="listingblock console-input ">
809809< div class ="content ">
810- < pre > export GATEWAY=$(oc get gateway hello-gateway -n istio-ingress -o template --template='{{(index .status.addresses 0).value}}')
810+ < pre class =" highlightjs highlight " > < code class =" language-shell script hljs " data-lang =" shell script " > export GATEWAY=$(oc get gateway hello-gateway -n istio-ingress -o template --template='{{(index .status.addresses 0).value}}')
811811
812812curl -s $GATEWAY/hello
813- curl -s $GATEWAY/hello-service</ pre >
813+ curl -s $GATEWAY/hello-service</ code > </ pre >
814814</ div >
815815</ div >
816816< div class ="paragraph ">
@@ -820,9 +820,9 @@ <h3 id="walkthrough_guide"><a class="anchor" href="#walkthrough_guide"></a><a cl
820820< div class ="paragraph ">
821821< p > Before we continue, be sure to run the script</ p >
822822</ div >
823- < div class ="listingblock ">
823+ < div class ="listingblock console-input ">
824824< div class ="content ">
825- < pre > sh scripts/generate-traffic.sh</ pre >
825+ < pre class =" highlightjs highlight " > < code class =" language-shell script hljs " data-lang =" shell script " > sh scripts/generate-traffic.sh</ code > </ pre >
826826</ div >
827827</ div >
828828< div class ="paragraph ">
@@ -966,10 +966,10 @@ <h4 id="_openshift_web_console_view_2"><a class="anchor" href="#_openshift_web_c
966966< img src ="_images/rest-01.png " alt ="rest 01 " width ="75% ">
967967</ div >
968968</ div >
969- < div class ="listingblock ">
969+ < div class ="listingblock console-input ">
970970< div class ="content ">
971- < pre > export GATEWAY=$(oc get gateway hello-gateway -n istio-ingress -o template --template='{{(index .status.addresses 0).value}}')
972- curl -s $GATEWAY/hello-service</ pre >
971+ < pre class =" highlightjs highlight " > < code class =" language-shell script hljs " data-lang =" shell script " > export GATEWAY=$(oc get gateway hello-gateway -n istio-ingress -o template --template='{{(index .status.addresses 0).value}}')
972+ curl -s $GATEWAY/hello-service</ code > </ pre >
973973</ div >
974974</ div >
975975< div class ="listingblock ">
@@ -1134,9 +1134,9 @@ <h3 id="_performing_a_canary_deployment_rest_api_with_mesh"><a class="anchor" hr
11341134< div class ="paragraph ">
11351135< p > In the second terminal, run the script < code > canary-rollout.sh</ code > </ p >
11361136</ div >
1137- < div class ="listingblock ">
1137+ < div class ="listingblock console-input ">
11381138< div class ="content ">
1139- < pre > sh scripts/canary-rollout.sh</ pre >
1139+ < pre class =" highlightjs highlight " > < code class =" language-shell script hljs " data-lang =" shell script " > sh scripts/canary-rollout.sh</ code > </ pre >
11401140</ div >
11411141</ div >
11421142< div class ="paragraph ">
@@ -1168,9 +1168,9 @@ <h3 id="_performing_a_canary_deployment_rest_api_with_mesh"><a class="anchor" hr
11681168< div class ="paragraph ">
11691169< p > If you would like to roll traffic back to < code > v1</ code > , run the command:</ p >
11701170</ div >
1171- < div class ="listingblock ">
1171+ < div class ="listingblock console-input ">
11721172< div class ="content ">
1173- < pre > oc apply -k ./resources/application/kustomize/overlays/pod</ pre >
1173+ < pre class =" highlightjs highlight " > < code class =" language-shell script hljs " data-lang =" shell script " > oc apply -k ./resources/application/kustomize/overlays/pod</ code > </ pre >
11741174</ div >
11751175</ div >
11761176</ div >
0 commit comments