Re: [kubernetes-users] k8s networking / cluster size limits confusion

2017-08-14 Thread 'Tim Hockin' via Kubernetes user discussion and Q
On Mon, Aug 14, 2017 at 10:56 AM, David Rosenstrauch wrote: > On 2017-08-14 12:13 pm, 'Tim Hockin' via Kubernetes user discussion and Q > wrote: >> >> On Mon, Aug 14, 2017 at 9:03 AM, David Rosenstrauch >> wrote: >>> >>> So, for example, I have a k8s setup

Re: [kubernetes-users] k8s networking / cluster size limits confusion

2017-08-14 Thread David Rosenstrauch
On 2017-08-14 12:13 pm, 'Tim Hockin' via Kubernetes user discussion and Q wrote: On Mon, Aug 14, 2017 at 9:03 AM, David Rosenstrauch wrote: So, for example, I have a k8s setup with 4 machines: a master, 2 worker nodes, and a "driver" machine. All 4 machines are on the

Re: [kubernetes-users] k8s networking / cluster size limits confusion

2017-08-14 Thread 'Tim Hockin' via Kubernetes user discussion and Q
On Mon, Aug 14, 2017 at 9:03 AM, David Rosenstrauch wrote: > Thanks for the feedback. I see I didn't quite understand k8s networking > properly (and had my cluster misconfigured as a result). > > I now have it configured as: > > --cluster-cidr=10.240.0.0/12 /12 gives you room

Re: [kubernetes-users] k8s networking / cluster size limits confusion

2017-08-14 Thread David Rosenstrauch
Thanks for the feedback. I see I didn't quite understand k8s networking properly (and had my cluster misconfigured as a result). I now have it configured as: --cluster-cidr=10.240.0.0/12 --service-cluster-ip-range=10.128.0.0/16 And I'm deducing that the /12 in the cluster-cidr is what would

Re: [kubernetes-users] k8s networking / cluster size limits confusion

2017-08-11 Thread Matthias Rampke
Oh hold on. the *service cluster IP range* is not for pod IPs at all. It's for the ClusterIP of services, so you can have up to 64k services in a cluster at the default setting. The range for pods is the --cluster-cidr flag on kube-controller-manager. On Fri, Aug 11, 2017 at 3:05 PM David

Re: [kubernetes-users] k8s networking / cluster size limits confusion

2017-08-11 Thread David Rosenstrauch
Actually, that begs another question. The docs also specify that k8s can support up to 5000 nodes. But I'm not clear on how the networking can support that. So let's go back to that service-cluster-ip-range with the /16 CIDR. That only supports a maximum of 256 nodes. Now the maximum

Re: [kubernetes-users] k8s networking / cluster size limits confusion

2017-08-11 Thread David Rosenstrauch
Ah. That makes a bit more sense. Thanks! DR On 2017-08-11 10:41 am, Ben Kochie wrote: Kuberentes will be giving a /24 to each node, not each pod. Each node will give one IP out of that /24 to a pod it controls. This default means you can have 253 pods-per-node. This of course can be

Re: [kubernetes-users] k8s networking / cluster size limits confusion

2017-08-11 Thread Ben Kochie
Kuberentes will be giving a /24 to each node, not each pod. Each node will give one IP out of that /24 to a pod it controls. This default means you can have 253 pods-per-node. This of course can be adjust depending on the size of your pods and nodes. This means that you can fully utilize the