doc-exports/docs/asm/umn/asm_01_0069.html
Dong, Qiu Jian ec0b45029f ASM UMN initial version -20240425
Reviewed-by: Kovács, Zoltán <zkovacs@t-systems.com>
Co-authored-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
Co-committed-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
2024-09-18 09:02:28 +00:00

21 lines
3.4 KiB
HTML

<a name="asm_01_0069"></a><a name="asm_01_0069"></a>
<h1 class="topictitle1">The Service Is Configured with a Default-version Route and The Route Configuration Is Correct</h1>
<div id="body0000001129693296"><div class="section" id="asm_01_0069__section338613811422"><h4 class="sectiontitle">Description</h4><p id="asm_01_0069__p73411754171">Istio defines service traffic routing rules in <strong id="asm_01_0069__b327293546102357">VirtualService</strong> and <strong id="asm_01_0069__b1336703240102357">DestinationRule</strong>. Therefore, you need to configure <strong id="asm_01_0069__b1307529050102357">VirtualService</strong> and <strong id="asm_01_0069__b531862740102357">DestinationRule</strong> for each service. The following rules must be met:</p>
<ul id="asm_01_0069__ul14631191075912"><li id="asm_01_0069__li26691915135918">All ports of a Service must be configured in <strong id="asm_01_0069__b840689012102357">VirtualService</strong>.</li><li id="asm_01_0069__li56311510165920">The protocol type in <strong id="asm_01_0069__b303546881102357">VirtualService</strong> must be the same as that of the ports of a Service.</li><li id="asm_01_0069__li332613014131">The default service version must be configured in <strong id="asm_01_0069__b946334923102357">VirtualService</strong> and <strong id="asm_01_0069__b252832806102357">DestinationRule</strong>.</li></ul>
<div class="note" id="asm_01_0069__note8326150111318"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="asm_01_0069__p77811347151319">If the check result changes, the port number or port name of a Service may be changed.</p>
</div></div>
</div>
<div class="section" id="asm_01_0069__section624392141516"><h4 class="sectiontitle">Rectification Guide</h4><ol id="asm_01_0069__ol3920164917593"><li id="asm_01_0069__li838612632311"><span>Log in to the ASM console. Select the mesh where the service is located. In the navigation pane on the left, choose <strong id="asm_01_0069__b878750622102357">Mesh Configuration</strong>, click <strong id="asm_01_0069__b1226361881102357">Istio Resource Management</strong>, and select <strong id="asm_01_0069__b837251692102357">Istio resources: virtualservices</strong> and the namespace to which the service belongs.</span></li><li id="asm_01_0069__li1692014919593"><span>Ensure that all ports of the Service are configured in <strong id="asm_01_0069__b2054550668102357">VirtualService</strong>.</span><p><p id="asm_01_0069__p162121357614"><span><img id="asm_01_0069__image92051657313" src="en-us_image_0000001201276836.png"></span></p>
</p></li><li id="asm_01_0069__li14920184911596"><span>Ensure that the protocol type in <strong id="asm_01_0069__b1067945585102357">VirtualService</strong> is the same as that of the ports of the Service.</span><p><div class="fignone" id="asm_01_0069__fig153427541779"><span class="figcap"><b>Figure 1 </b>Protocol type in VirtualService</span><br><span><img id="asm_01_0069__image9794953429" src="en-us_image_0000001201436796.png"></span></div>
<div class="fignone" id="asm_01_0069__fig1134212541476"><span class="figcap"><b>Figure 2 </b>Port protocol type of the Service</span><br><span><img id="asm_01_0069__image5444611533" src="en-us_image_0000001246196675.png"></span></div>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="asm_01_0065.html">Auto Fixing Items</a></div>
</div>
</div>