projectcalico / calico

Cloud native networking and network security
https://docs.tigera.io/calico/latest/about/
Apache License 2.0
5.89k stars 1.31k forks source link

Disable ip allocation by pods #3372

Open duylong opened 4 years ago

duylong commented 4 years ago

Hi,

Can we, with annotations on each pods, disable automatic IP allocation?

I have a few containers that work without problems in IPv6 and I would like to disable IPv4 on specific pods.

rafaelvanoni commented 4 years ago

@duylong We don't have a way to express that type of configuration, but perhaps you could setup some egress policies to block IPv4 on those specific pods.

duylong commented 4 years ago

Some applications when they detect an ipv4 interface use it in priority. An Egress rule will not solve the problem.