subnet.env content mismatch configuration
perrefe opened this issue · comments
Pablo Ramírez commented
After created a new cluster with cctl using --pod-network 192.168.5.0/16 --service-network 192.169.0.0/24
as options the host flannel.1 interface gets the inet address 192.168.0.0/32
and cni0 gets 192.168.0.1/24
which became in conflict with my network.
Inside the flannel container the /run/flannel/subnet.env file content is:
FLANNEL_NETWORK=192.168.0.0/16
FLANNEL_SUBNET=192.168.0.1/24
FLANNEL_MTU=1450
FLANNEL_IPMASQ=true
and the /etc/kube-flannel/net-conf.json file is:
{
"Network": "192.168.5.0/16",
"Backend": {
"Type": "vxlan"
}
}
Can you figure what is going on?