On Tue, Dec 27, 2016 at 12:24 AM 王硕 <[email protected]> wrote:
> I'm learning Fleet. I have deployed etcd and fleet at one server. The > configuration of etcd is as below, 10.0.18.7 is my server's IP: > Please be aware that fleet is not recommended for new use cases. https://github.com/coreos/fleet#-deprecation-warning- https://github.com/coreos/fleet#current-status > etcd_servers=["http://10.0.18.7:2379"] > > ... > public_ip="10.0.18.7" > > ... > > I have used Fleetctl CLI like fleetctl list-units --endpoint > http://10.0.18.7:2379 --driver "etcd". Yes, I mush add endpoint and > driver, this two argument, otherwise it will return failure. > These flags should not be necessary. Can you just login to the Container Linux host directly and run fleetctl without driver and endpoint flags? > My problem is when I call Fleet api http://10.0.18.7:2379/units/myapp, > the server return 404 to me. > The fleet API does not listen on 2379. That is the etcd API. The fleet API is at /var/run/fleet.sock. Brandon
