Istio 101 : Sidecar injection into a Kubernetes deployment

Injection of sidecar in a kubernetes application, means that istio is going to modify the deployment's Yaml file of our pods to include a side car proxy - envoy by default -.

For example we take the simple below deployment for nginx pod:

After running the "kubectl apply" command on our deployment, we check also our pod using the below command:

We "inject" a sidecar container into the above deployment using the below command:

Then we re-check our deployment to see if istio added the side car proxy:

We could also check it using the below command:

The automatic injection of a side car occurs when the namespace has the "injection" enabled. 

We enable it in a namespace using the below command:

And we disable it using the below command:


Leave as a comment: