Skip to content
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

Let the user set the Fleet Server host after installing #182

Closed
mostlyjason opened this issue Mar 29, 2021 · 2 comments
Closed

Let the user set the Fleet Server host after installing #182

mostlyjason opened this issue Mar 29, 2021 · 2 comments

Comments

@mostlyjason
Copy link

mostlyjason commented Mar 29, 2021

Currently, the user is required to set the Fleet Server host in Fleet Settings before installing Fleet Server. If they do not, the agent will get a policy with no valid hosts and it will no longer receive updates. I'm worried that not all users will read the instructions carefully. It'd be nice if we designed our fleet server to be more resilient and able to recover in this scenario.

The agent already has the ability to check whether a fleet server host is valid by checking a status endpoint. If the status endpoint does not return 200, it does not accept the policy and it returns an unhealthy status.

Can we do the same during bootstrapping to allow the user to set the Fleet server host after installing Fleet server? If its valid, then the agent will finish bootstrapping and check in successfully. If not, then keep checking ES on regular interval until it is. This allows the user to fill in the Fleet Server host later. We can also set the agent status as unhealthy to indicate that setup is not complete.

@blakerouse
Copy link
Contributor

I think you are speaking specifically of an Elastic Agent not being able to talk to its local (running on same box) even if the fleet.host is wrong in the policy?

If that is the case then this is already solved. The Elastic Agent knows when its running Fleet Server on its own host and will talk to it through localhost only. So in the case the Elastic Agent does not care what is set in Kibana. It is only on the Elastic Agents that are not running Fleet Server will it cause an issue.

@mostlyjason
Copy link
Author

Thanks @blakerouse! I filed this thinking it doesn't work but I just got confirmation that it does. I think we can close this issue.

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

No branches or pull requests

2 participants