This repository has been archived by the owner. It is now read-only.
flanneld.service does not use /etc/hosts anymore #1565
Closed
Milestone
Comments
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Issue Report
Bug
After upgrading to
1122.2.0
CoreOS version,flanneld.service
does not see/etc/hosts
anymore, so it's impossible to specifyetcd
cluster nodes via their aliases, only by IPs or real domains.But on
1068.10.0
it worked fine.CoreOS Version
Environment
Digital Ocean 2 GB / 40 GB Disk / AMS3 - CoreOS 1122.2.0 (stable)
Having
/etc/hosts
like:And
cloud-config
section ilke:Expected Behavior
Works fine.
Actual Behavior
Fails with following error in
systemctl status flanneld
:Other Information
etcd
cluster is reachable and healthy.etcd cluster-health
:fleetctl list-machines
:Changing section in
cloud-config
to:fixes the problem and everything is OK.
Having a look at
systemctl cat flanneld
we see next:so no mounting of
/etc/hosts
is performed, that's why endpoints cannot be resolved by their aliases which is quite obvious.Proposals to fix
Just mount
/etc/hosts
to container.Provide this capability via some env var like
RKT_OPTS
inflanneld.service
declaration, so if anybody need additional mounts or parameters forflanneld
it can be easily done via drop-in file like:The text was updated successfully, but these errors were encountered: