forked from docs/doc-exports
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com> Co-authored-by: Dong, Qiu Jian <qiujiandong1@huawei.com> Co-committed-by: Dong, Qiu Jian <qiujiandong1@huawei.com>
24 lines
3.0 KiB
HTML
24 lines
3.0 KiB
HTML
<a name="asm_faq_0037"></a><a name="asm_faq_0037"></a>
|
|
|
|
<h1 class="topictitle1">How Do I Disable Sidecar Injection for Workloads?</h1>
|
|
<div id="body0000001268293001"><p id="asm_faq_0037__p8060118">If sidecar injection is enabled for a namespace of a cluster, sidecars are automatically injected for the pods of all workloads in the namespace. To prevent sidecars from being injected for some workloads, perform the following operations:</p>
|
|
<ol id="asm_faq_0037__ol425845114363"><li id="asm_faq_0037__li946861618501"><span>Log in to the CCE console and click the cluster name to go to the cluster console. In the navigation pane, choose <strong id="asm_faq_0037__b1997919161">Workloads</strong>. Then, click the <strong id="asm_faq_0037__b5910915165">Deployments</strong> tab.</span></li><li id="asm_faq_0037__li411192010539"><span>Locate the workload and click <strong id="asm_faq_0037__b16189122217175">Edit YAML</strong> in the <strong id="asm_faq_0037__b1262015291810">Operation</strong> column.</span></li><li id="asm_faq_0037__li15358210441"><span>Locate the target field based on the service mesh version and add <strong id="asm_faq_0037__b11704672243">sidecar.istio.io/inject: 'false'</strong>.</span><p><ul id="asm_faq_0037__ul18942053104418"><li id="asm_faq_0037__li22712717457">For service meshes earlier than 1.13<div class="p" id="asm_faq_0037__p748709104516"><a name="asm_faq_0037__li22712717457"></a><a name="li22712717457"></a>Locate the <strong id="asm_faq_0037__b485819326134">spec.template.metadata.annotations</strong> field and add <strong id="asm_faq_0037__b8858183217139">sidecar.istio.io/inject: 'false'</strong>.<pre class="screen" id="asm_faq_0037__screen575018269110"> annotations:
|
|
sidecar.istio.io/inject: 'false'</pre>
|
|
</div>
|
|
<p id="asm_faq_0037__p17606194116195"><span><img id="asm_faq_0037__image166053415196" src="en-us_image_0000001223579300.png"></span></p>
|
|
</li></ul>
|
|
<ul id="asm_faq_0037__ul131144284459"><li id="asm_faq_0037__li161141928154518">For service meshes 1.13 or later:<p id="asm_faq_0037__p165276064812"><a name="asm_faq_0037__li161141928154518"></a><a name="li161141928154518"></a>Locate the <strong id="asm_faq_0037__b542419398134">spec.template.metadata.label</strong> field and add <strong id="asm_faq_0037__b942443915138">sidecar.istio.io/inject: 'false'</strong>.</p>
|
|
<pre class="screen" id="asm_faq_0037__screen1852740154813"> label:
|
|
sidecar.istio.io/inject: 'false'</pre>
|
|
<p id="asm_faq_0037__p194274115277"><span><img id="asm_faq_0037__image13417142112712" src="en-us_image_0000001997321585.png"></span></p>
|
|
</li></ul>
|
|
<p id="asm_faq_0037__p1535858144817">For more details about sidecar injection, see <a href="https://istio.io/latest/docs/setup/additional-setup/sidecar-injection/#controlling-the-injection-policy" target="_blank" rel="noopener noreferrer">Automatic Sidecar Injection</a>.</p>
|
|
</p></li></ol>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="asm_faq_0019.html">Mesh Management</a></div>
|
|
</div>
|
|
</div>
|
|
|