talos icon indicating copy to clipboard operation
talos copied to clipboard

Feature request - change the defaults for podsubnets and servicesubnets

Open gecube opened this issue 1 year ago • 3 comments

Feature Request

Change the defaults for podsubnets and servicesubnets from 10.244.0.0/16 and 10.96.0.0/12 respectively to 100.64.0.0/16 and 100.96.0.0/16

Description

Good day! I am asking for such a change because many host providers are using 10.0.0.0/8 for the host network: google, hetzner etc. It leads to the state when pod networks overlaps the host network leading to the bunch of the issues. Also I have never seen somebody, who is using CG-NAT addresses from 100.64.0.0/10 network. It could be some big providers, but they definitely will need additional configuration of k8s networks, so the change won't break anything.

gecube avatar Feb 11 '24 16:02 gecube

No need to change the defaults, just do your proper config: https://www.talos.dev/v1.6/reference/configuration/v1alpha1/config/#Config.cluster.network

Griznah avatar Feb 12 '24 07:02 Griznah

@Griznah Thanks! I do it by creating patch.yaml and applying it with talosctl But this is additional step :-)

gecube avatar Feb 12 '24 07:02 gecube

I'd guess there are no defaults that would work for everyone unfortunately.

100.x space is used by Tailscale for example.

smira avatar Feb 12 '24 10:02 smira