-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[question] where is the correct location (within the config) for consul.* #1056
Comments
Hi ketzacoatl, Try putting those parameters in the options block of the client setting. So it would look like this:
It is described here: https://www.nomadproject.io/docs/agent/config.html#options_map As an additional remark: make sure that you run Consul on every node so that Nomad can connect to it locally. I have seen weird behaviour when pointing Nomad clients to a single remote Consul location. |
OK, I see what that doc is trying to communicate, and that makes sense now. I will find a short but simple way to update the docs with an example here. One last question, is this |
I don't believe it is available in the server block. |
OK, so only clients communicate with consul? |
That is correct, in the end they are responsible for actually running the tasks and registering them in Consul. The servers only determine the scheduling. |
Later in the day I will update this doc and submit a PR for review. Thanks for your help! |
Is there a reason why
config looks like:
|
The node_id parameter should be removed from the documentation as it is no longer specifiable. |
Ah, yes, ok, I'll hit that separately. |
@ketzacoatl We are introducing a |
SGTM. |
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
I am confused about the proper use of the consul.* config parameters.
Nomad version
Operating system and Environment details
Ubuntu Linux 14.04 AMD64 on AWS.
Issue
https://www.nomadproject.io/docs/agent/config.html confusingly states:
..but when I put
consul.address
andconsul.token
into theclient
section of my config, I get:When I move those two parameters out of the
client
section to the root of the config, I get:Agent config looks like:
When I worked with the nomad server config, I saw similar errors.
I am confused - How are the
consul.*
parameters intended to be used?The text was updated successfully, but these errors were encountered: