RHOCP 4 initContainer in CrashLoopBackOff on pod with Service Mesh sidecar injected
Issue
- Pod with istio-proxy sidecar injected fails to initialize due to failed
initContainer
, wheninitContainer
needs to communicate with some service on a different project. - Pod with istio-proxy sidecar injected fails to initialize due to failed
initContainer
, wheninitContainer
needs to communicate with a service in or outside the 'Mesh' via itsFQDN
. -
The
initContainer
in a Service Mesh pod is not able to resolve or connect to any service:Could not resolve host: kubernetes.default.svc.cluster.local Closing connection 0
-
The
initContainer
starts before the sidecar so theNetworkPolicies
are blocking any egress traffic from mesh.
Environment
- Red Hat OpenShift Container Platform (RHOCP) 4
- Red Hat OpenShift Service Mesh (OSSM) 2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.