I hope someone can enlighten me on Kubernetes network setup. I want to use flannel as the Kubernetes network layer.
I'm on Kubernetes: 1.5.5 btw.
The problem is, there are so many places you can(should?) define a cidr, I'm not seeing the woods for the trees anymore.
To give you some info about my setup:
- my hosts are deployed in the 10.9.0.0/24 range.
- I want to use 10.254.0.0/16 as the flannel range
- at the moment, docker on the worker nodes uses the 172.17.0.0/16 range
kube-apiserver has the following options for cidr's:
--service-cluster-ip-range
kube-controller-manager has the following options for cidr's:
--cluster-cidr
--service-cluster-ip-range
what's the difference between those two?
kube-proxy has this one:
--cluster-cidr={{ kubernetes_cluster_cidr }}
what ip range goes where exactly?