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:
- Log in to the CCE console, click the target cluster to go to its details page, and choose Resources > Workloads in the navigation pane on the left.
- Click Edit YAML in the Operation column of the target workload.
- 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.
Mesh Management FAQs
- Why Cannot I Create a Mesh for My Cluster?
- Why Are Exclusive Nodes Still Exist After Istio Is Uninstalled?
- How Do I Upgrade ICAgent?
- How Do I Enable Namespace Injection for a Cluster?
- How Do I Disable Sidecar Injection for Workloads?
- What Can I Do If A Pod Cannot Be Started Due to Unready Sidecar
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore