kubernetes-the-right-way icon indicating copy to clipboard operation
kubernetes-the-right-way copied to clipboard

Service cluster IP range/CIDR

Open anton-johansson opened this issue 5 years ago • 3 comments

The service cluster IP range is hardcoded to 10.32.0.0/24. I'm guessing we should make this a parameter, with a default value instead?

Also, why /24? Doesn't this limit the number of services in the cluster to 256? I see that Kubernetes default is 10.0.0.0/24 though, so maybe it's common.

anton-johansson avatar Nov 10 '19 15:11 anton-johansson

It's using whatever Mr Hightower was using :) I see that kubeadm init uses 10.96.0.0/12. https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-init/

amimof avatar Feb 22 '20 18:02 amimof

@anton-johansson I would not call it hardcoded CID since this is working and you reconfigure @amimof ansible template for your own needs if you play with it.

umbrellaLt avatar Feb 28 '21 10:02 umbrellaLt

Well, I guess it depends on how we want KTRW to be used. I don't want to use it as a template, because I want to be able to easily get upstream changes to KTRW (with a simple git pull).

I want to use it more as an application, where I can just configure things as I need through the Ansible inventory file. Otherwise, we might aswell remove all configurable options. :)

Anyway, I haven't hit any issue with 10.32.0.0/24, but I imagine that I will in the future, since it's limited to 256 (254?) services.

anton-johansson avatar Mar 01 '21 13:03 anton-johansson