-
Notifications
You must be signed in to change notification settings - Fork 465
Docker not using the flannel IPs #884
Comments
I believe the documentation is outdated. I'm having a lot of trouble with DNS following the official guide. Nothing seems to work. |
Oops, I've just noticed this is a duplicate of #872, although with a different solution. |
I've run into the same issue. Very disgusting. My solution for CoreOS Cloud-Config. I deleted the docker_opts_cni.env and added this to the 40-flannel.conf. Maybe the service file could written in a better way but it works for me.
Maybe something like this is also necessary |
After appending |
In the documentation it says to create a drop-in containing the following:
And a
/etc/kubernetes/cni/docker_opts_cni.env
file containing the following:But it seems that these environment variables only seems nullify the environment variables in
/var/run/flannel/flannel_docker_opts.env
and cause docker to use its default IPs (ie. pods come up with a172.17.0.x
address. Commenting out theEnvironmentFile
line in the drop-in and restarting docker causes the pods to then pick up a10.2.x.x
IP.Is the documentation incorrect? or am I missing something?
The text was updated successfully, but these errors were encountered: