_META_DNS_AUTO_ALLOCATE: &#34;true&#34;
EOF
</code></pre><p>您也可以在每个 Pod 上启用该功能，通过 <a href=/v1.20/zh/docs/reference/config/annotations/><code>proxy.istio.io/config</code> 注解</a>：</p><pre><code class=language-yaml data-expandlinks=true data-repo=istio>kind: Deployment
metadata:
  name: sleep
spec:
...
  template:
    metadata:
      annotations:
        proxy.istio.io/config: |
          proxyMetadata:
            ISTIO_META_DNS_CAPTUR