sealos icon indicating copy to clipboard operation
sealos copied to clipboard

Feature: sealos support IPV6 addr

Open Nathan7512 opened this issue 1 year ago • 6 comments

Detailed description of the question.

I try to add ipv6 address to podSubnet field, but it doesn't work. Networking: DNSDomain: "" PodSubnet: 100.64.0.0/10 ServiceSubnet: 10.96.0.0/22

Some reference materials you see.

No response

Nathan7512 avatar Apr 07 '23 05:04 Nathan7512

After the PodSubnet is added with ipv6 cidr, an error will be reported when the sealos command is executed. How can I modify it to avoid this problem? 2023-04-12T09:22:05 error Applied to cluster error: failed to init generator config init kubeadm config error: invalid CIDR address: 100.64.0.0/10,fd01::/64 Error: failed to init generator config init kubeadm config error: invalid CIDR address: 100.64.0.0/10,fd01::/64

Nathan7512 avatar Apr 12 '23 02:04 Nathan7512

The current parsing mode defaults to only ipv4 cidr. After setting dual-stack cidr, an error will be reported when the parseCIDR function is executed. The situation of cidr separation should be considered. https://pkg.go.dev/net#example-ParseCIDR

Nathan7512 avatar Apr 12 '23 02:04 Nathan7512

The Contains function calls the ParseCIDR function. When the subnet is configured with dual stack, it will fail to parse. The problem may be here, can it be solved? https://github.com/labring/sealos/blob/be282f8d12d25570ea8bb4171300889ee240cf80/pkg/runtime/kubeadm.go#L138-L150

Nathan7512 avatar Apr 12 '23 03:04 Nathan7512

pls assign it to me, let me take a look

pixeldin avatar Apr 15 '23 17:04 pixeldin

请问ipv6有支持计划了吗?

AEGEGE avatar Jun 15 '23 07:06 AEGEGE

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Is there any support plan for ipv6?

sealos-ci-robot avatar Jun 15 '23 07:06 sealos-ci-robot

/assign

ghostloda avatar Jun 29 '23 07:06 ghostloda