Welcome to the Linux Foundation Forum!

CALICO_IPV4POOL_CIDR in Lab 3.1

I am trying to complete lab 3.1, I have a question about parameter CALICO_IPV4POOL_CIDR in the calico.yaml file.
I am running VMs in Virtualbox with bridged connection. My home network is 192.168.2.0/24. Will I have a conflict if I use CALICO_IPV4POOL_CIDR value: 192.168.0.0/16?
If so, changing (and un-commenting this line) will be enough to avoid the conflict?

Best Answer

  • chrispokorni
    chrispokorni Posts: 2,155
    Answer ✓

    Hi @gbarquero,

    To avoid any IP subnet overlap you can use a different IP pool for calico. Modifying both calico.yaml and kubeadm-config.yaml with the desired pod subnet should work. Run the kubeadm init command only after both yaml files have been update with the desired IP range. Keep in mind that you should also avoid overlap with 10.96.0.0/12 range, assigned for services.

    Regards,
    -Chris

Answers

Categories

Upcoming Training