Configure sidecar installation to bypass calls to container image registry during pod startup #56058
-
Hello Everyone, I am looking for help in configuring istio sidecar mode. In sidecar mode, in default configuration, we have 3 containers for a pod:
After the istio-init is started, it reconfigures the iptables so that all subsequent network requests will go through istio-proxy. In short, the scheme looks like this:
Question: how to configure istio installation to bypass calls to containers registries (preferebaly by DNS name, not CIDR)? This is the install command I am using:
Thanks in advance for all replies :) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Can you check if using native sidecars helps - https://istio.io/latest/blog/2023/native-sidecars/ |
Beta Was this translation helpful? Give feedback.
-
The container runtime which pulls the container images does not execute inside the network namespace of the pod, so the iptables rules set up by the init container do not apply to it. What happens if you try to manually pull the image |
Beta Was this translation helpful? Give feedback.
Ahhh yes, this is the information we needed. Thank you for clarifying!
Okay so essentially what you are facing is a variation of the "how do I run an istio sidecar with
hostNetwork: true
" problem (point 2 in this doc). I am not aware of any standard practice for automatically extending the mesh to K8s managed microvm's. The closest thing I know of is this guide to extending the service mesh to include VM's which are external to the K8s cluster.I can think of two avenues to explore for this use case.
Create a purpose built solution to add support for the microVM. This could be something like implementing containers running in a network namespace within the microVM, or building your VM i…