kubernetes-retired / kubeadm-dind-cluster

[EOL] A Kubernetes multi-node test cluster based on kubeadm
Apache License 2.0
1.11k stars 272 forks source link

Allow cluster nodes to join custom network(s) besides the default kubeadm-dind-net #295

Closed morningspace closed 5 years ago

morningspace commented 5 years ago

When we launch cluster, all nodes will join the default kubeadm-dind-net, which is the management network for the cluster. The basic idea here is to allow nodes to join custom network(s) other than the default one. This allows nodes to connect to something outside of kubeadm-dind-net.

One typical use case that I'm doing is to add these nodes to a local bridge network where there are a few private Docker registries which are also containers, so, when launch the cluster, kubeadm can pull images from these private registries quickly rather than their public peers, e.g. k8s.gcr.io, gcr.io, etc. I found that makes the cluster bootstrap really really fast, both for local dev and CI. And, this can even run w/o network connection since all traffic happens at local...

I'm going to submit a simple PR for this... Feel free to check it and see if that makes sense to merge when people think that's useful to others...

morningspace commented 5 years ago

Closing it as the corresponding PR has been merged... cheers...