Istio Sidecar Injection stuck container creation after enable injection on k8s namepsace

Viewed 96

I'm running into a problem when enable sidecar istio-injection over minikube local cluster, after apply a deployment manifest the pod never start

Steps reproduced...

1. kubectl label namespace udemy istio-injection=enabled
2. kubecl apply -f mydeployment.yaml


6s          Normal    Scheduled   pod/kiada   Successfully assigned udemy/kiada to minikube
4s          Normal    Pulled      pod/kiada   Container image "docker.io/istio/proxyv2:1.10.3" already present on machine
4s          Normal    Created     pod/kiada   Created container istio-init
4s          Normal    Started     pod/kiada   Started container istio-init
2s          Warning   BackOff     pod/kiada   Back-off restarting failed container

Stay stuck

2 Answers

To start with istio documentation for sidecar problems can be used to detect the problem

Can I get the exact deployment.yaml ? Did you attach any volumes/configmaps/secrets in it? if yes, please make sure all those are available before you deploy.

Related