When use kubeadm to set up a cluster of kube. There are two options to config.
--service-cidr (default ‘10.96.0.0/12’)
Question is:<ol> <li>
If I use 10.244.0.0./12 for pod-network-cidr, do I need to save that ip range for kubernetes? What happens if we already start to use 10.244.0.0/12 for other machines.</li> <li>
Can I set service-cidr the pod-network-cidr the same range ?? I don't understand how service-cidr works.</li> </ol>
To reply briefly:
<li>You do have to reserve <strong>both</strong> the pod-network range and the service network range. You can't use those on your LAN (and you can't have routes to it). Both ranges are configurable so you can pick something that is not used. Use ipcalc if you are unsure.</li>
<li>You have to use separate ranges.</li>
Check out these slides for explanation about the different networks in play.