sealos
sealos copied to clipboard
Feature: sealos support IPV6 addr
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
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
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
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
pls assign it to me, let me take a look
请问ipv6有支持计划了吗?
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Is there any support plan for ipv6?
/assign