coreos-kubernetes icon indicating copy to clipboard operation
coreos-kubernetes copied to clipboard

[Docker] Pods' IP not in $POD_NETWORK range

Open JWimsingues opened this issue 8 years ago • 3 comments

When deploying a cluster, everything works well but when I run a few docker's containers on it, pods do not have the appropriate network configuration.

After some troubleshooting, it seems that the range set in the Docker's network is not well configured. The Flannel interface was different from the Docker one.

Finally, the docker.service do not have the --bip option set. It seems that this file (on workers) might be the problem: /etc/systemd/system/docker.service.d/40-flannel.conf. I changed the systemd drop-in in my worker from: EnvironmentFile=/etc/kubernetes/cni/docker_opts_cni.env to: EnvironmentFile=/run/flannel/flannel_docker_opts.env.

After reloading, my pods get the configured sub network specified in etcd.

Am I doing something wrong or is it a problem in the documentation?

I can run a few more tests if required.

JWimsingues avatar Apr 21 '17 14:04 JWimsingues

Thank you, I have been banging my head against this issue for about a week. Finally found this and ALL network issues are resolved. The documentation should be updated.

dannymk avatar Jun 11 '17 19:06 dannymk

Happy to read that it helps!

JWimsingues avatar Jun 15 '17 09:06 JWimsingues

@JWimsingues should we create a merge request? Thanks again for this live saving change :)

andrewwebber avatar Jun 20 '17 07:06 andrewwebber