New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flannel unit should be more flexible #1079

sigma opened this Issue Jan 20, 2016 · 1 comment



sigma commented Jan 20, 2016

Right now, the flanneld.service reads like this:

ExecStart=... \
  /usr/bin/docker run ...${FLANNEL_VER} ...

There are at least 2 issues with this:

  • it makes mirroring the flannel image locally more difficult than it should be (since a non-trivial part of the service definition needs to be overloaded by a drop-in)
  • when the network is super-slow, starting flannel can easily timeout in the "docker pull" part, which can mess the surrounding automation (convoluted ansible stuff has to be written to work around this)

If instead we had something like an environment file containing


then it would be trivial to overload the image to point to a local mirror, and we could force a synchronization point in automation by building a "docker pull" invocation based on that same file before trying to start the service (so that the systemd part would be just fine). Although if the image was indeed local, that probably wouldn't even be needed.


This comment has been minimized.


crawford commented Jan 20, 2016


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment