Help Center/ Application Service Mesh/ User Guide (ME-Abu Dhabi Region)/ FAQs/ Mesh Management/ How Do I Disable Sidecar Injection for Workloads?
Updated on 2024-03-15 GMT+08:00

How Do I Disable Sidecar Injection for Workloads?

After sidecar injection is enabled for a namespace of a cluster, sidecars are automatically injected for pods of all workloads in the namespace. You can configure sidecars not to be injected into some workloads:

  1. Log in to the CCE console. In the navigation pane, choose Workloads > Deployments.
  2. Click the target cluster in the drop-down list box and click Edit YAML in the Operation column of the target workload.
  3. Find the spec.template.metadata.annotations field and add sidecar.istio.io/inject: 'false'.

          annotations:
            sidecar.istio.io/inject: 'false'

    For more details about sidecar injection, see Automatic Sidecar Injection.