foundation-model-stack / multi-nic-cni

https://foundation-model-stack.github.io/multi-nic-cni/
Apache License 2.0
33 stars 5 forks source link

Set static IPs for a specific pod #156

Closed sunya-ch closed 8 months ago

sunya-ch commented 9 months ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

In some case, users want to set static IP on a specific pod such as API server, storage.

Describe the solution you'd like A clear and concise description of what you want to happen.

When the IP(ips) is annotated at k8s.v1.cni.cncf.io/networks, it should set the static IP address in the same order defined in cni-args.

        "cni-args": {
          "masters": ["eth1", "eth2"]
        },
        "ips": [ "192.168.0.1/18", "192.168.64.1/18" ]

note: this should be applicable only for single-NIC IPAM with masters annotations to ensure the order

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.