BlogIstio

Why is my sidecar not re-injected after a revision change?

Scott Sternloff

By Scott Sternloff, Senior Enterprise Architect

LinkedIn · Updated · 4 min read

Why is my sidecar not re-injected after a revision change?
On this page

Istio injects the sidecar when a pod is created, and the label on its namespace decides which control plane does it. After you point a namespace at a new revision, running pods keep their old proxy until you restart them. If the namespace still carries istio-injection, that label wins over istio.io/rev and the move never happens.

This is a configuration fault, not a mesh outage, but it leaves a mixed data plane quietly running on a release you meant to retire, and Istio's support window does not wait for it.

Which labels decide injection?

The injection page and canary upgrade guide give the rules. For a namespace on a revision, the revision label replaces the default one:

Injection labels, read 4 December 2026
ResourceEnableDisable
Namespace, default control planeistio-injection=enabledistio-injection=disabled
Namespace, revision or tagistio.io/rev=<revision-or-tag>istio-injection=disabled
Pod template metadatasidecar.istio.io/inject: "true"sidecar.istio.io/inject: "false"

Three precedence rules follow. A disable label on the namespace or the pod stops injection. An enable label starts it. If neither is set, the pod is injected only when .values.sidecarInjectorWebhook.enableNamespacesByDefault is on, which it is not by default.

How do you move a namespace to a new revision?

  1. Install the new revision beside the old one. Name it for the version with dashes, for example 1-32-1.
  2. Remove the old label and add the new one in one command: kubectl label namespace test-ns istio-injection- istio.io/rev=1-32-1.
  3. Restart the workloads: kubectl rollout restart deployment -n test-ns.
  4. Verify with istioctl proxy-status. The ISTIOD and VERSION columns show which control plane each proxy follows.

If you use revision tags, you change the tag's target once and every namespace labeled with that tag follows at the next restart. The production how-to explains tags and gateways.

The same label is how you hold a risky namespace back. Leave a payments namespace on the old revision while the rest move, and it keeps its proxy on purpose rather than by accident. Write the exception down with an owner and a date, because the old revision has to stay installed for as long as that namespace needs it.

What if the label is right and injection still does not happen?

Istio's injection troubleshooting page lists the usual causes. Check in this order:

  • The namespace is kube-system or kube-public, or the pod uses hostNetwork: true. Automatic injection ignores both.
  • The webhook's namespaceSelector scopes it to opt-in or opt-out: compare kubectl get mutatingwebhookconfiguration istio-sidecar-injector -o yaml with the namespace labels.
  • The per-pod override sits on the pod template, not on the Deployment's own metadata, which is ignored.
  • Check the policy in the istio-sidecar-injector configmap holds the injection policy; an unrecognized value disables injection completely.

Run istioctl analyze --all-namespaces too. It reports a namespace that is not enabled for injection.

What does a mixed data plane cost you?

A namespace left on the old revision keeps its old proxy, and the old proxy keeps its old support window. The supported-releases post explains why that date matters. Istio also allows the control plane to be one version ahead of the data plane, never behind, so removing the old control plane before the last namespace moves strands those proxies.

What to check after the restart
CommandWhat healthy looks like
istioctl proxy-statusThe ISTIOD and VERSION columns show the new revision for each restarted pod
kubectl get pod -n test-nsREADY shows 2/2 (app plus istio-proxy)
kubectl get namespace -L istio-injectionNo istio-injection value left on a namespace you moved to a revision
istioctl tag listEach tag points at the revision you expect

When should you bring in help?

When the webhook itself fails and new pods cannot be created, or when hundreds of workloads across many namespaces need staged restarts without breaking a Friday release. AceMQ's Istio support plans the restart order and checks skew: Istio allows the control plane to be one version ahead of the data plane, never behind. Send your Istio version, revision and cluster count; AceMQ replies to quote requests within 1 hour.

Sources

Frequently Asked Questions

Why is my pod still on the old Istio version after relabeling?

Injection happens at pod creation. Relabeling a namespace does not touch running pods, so they keep the old proxy until they are restarted.

Which label wins, istio-injection or istio.io/rev?

If both are on the same namespace, istio-injection takes precedence. Remove it when you move a namespace to a revision.

Can a revision name contain a dot?

No. The dot is not a valid revision name character, so Istio 1.32.1 becomes 1-32-1.

Scott Sternloff

Author

Scott SternloffSenior Enterprise Architect

Senior Enterprise Architect at AceMQ. Writes the technical coverage here: RabbitMQ, Kafka and Redis architecture, clustering and migrations.

Talk to an engineer

Need a hand with Istio?

Senior engineers who run it in production. Get a quote or a free consultation, no sales pitch.

Free Consultation

Get Expert Eyes on Your Istio Environment

Whether you're troubleshooting a production incident, planning a migration, or want a second opinion on your architecture — our team is ready. No pitch, just answers.

Email Us