Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

[Docker] Pods' IP not in $POD_NETWORK range #872

Open
JWimsingues opened this issue Apr 21, 2017 · 3 comments
Open

[Docker] Pods' IP not in $POD_NETWORK range #872

JWimsingues opened this issue Apr 21, 2017 · 3 comments

Comments

@JWimsingues
Copy link

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.

@dannymk
Copy link

dannymk commented Jun 11, 2017

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.

@JWimsingues
Copy link
Author

Happy to read that it helps!

@andrewwebber
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants