-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IPv4-Only Pods in Dual-Stack #9491
Comments
@renyunkang Have you tried |
Thank you for your response. @mazdakn "NoIpam" is not the desired outcome. I still want Calico to automatically manage IP addresses (IPAM), but I need a configuration option to specify which namespaces or pods should only use IPv4, instead of both IPv4 and IPv6, even with dual-stack enabled. |
Yeah, I agree - the Requires that you implement your own IPAM solution external to Calico and CNI 😬 |
I think an annotation to expose configuration of IP families is appropriate. One thing to think about is whether or not we want to unconditionally allow application developers (i.e., people deploying pods) to control which IP families they have access to regardless of cluster configuration. Generally for these types of annotations, you want this to be opt-in within the CNI config file itself in some way. Otherwise a cluster admin can configure Calico to behave one way (i.e., requiring dual stack) and then have app devs override that configuration when it's not desirable. We may want to make this annotation available only if the cluster admin has deferred this capability to application developers - see the existing CNI config "feature_control" section which is used for this sort of thing: calico/cni-plugin/pkg/types/types.go Lines 33 to 37 in 840cb65
|
Would be something like |
On second thought.... maybe that's too paranoid. The |
If I've enabled dual-stack networking, how can I configure specific pods to use only IPv4 (single-stack)?
Is there a configuration method to achieve this, or is it currently unsupported?
The text was updated successfully, but these errors were encountered: