��注入。</p><pre><code class=language-yaml data-expandlinks=true data-repo=istio>apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: ignored
spec:
  template:
    metadata:
      annotations:
        sidecar.istio.io/inject: &#34;false&#34;
    spec:
      containers:
      - name: ignored
        image: tutum/curl
        command: [&#34;/bin/sleep&#34;,&#34;infinity&#34;]

</code></pre><p>此示例显示了许多变量，这取决于是否在命名空间、ConfigMap 和 pod 中控制 sidec