Is there a way to find the Leader node in recovery when I lose a token in a Nomad cluster with ACL enabled?

Asked 2 years ago, Updated 2 years ago, 51 views

You have enabled ACLs for Nomad clusters as follows:

https://learn.hashicorp.com/tutorials/nomad/access-control-bootstrap

Enabling ACLs requires Token for access.
If you lose your Token, you will need to follow the steps below to recover it.

https://learn.hashicorp.com/tutorials/nomad/access-control-bootstrap#re-bootstrap-acl-system

Recovery operations are as follows, but we were unable to determine which of the Leader nodes 1 is.

Is there any way to check the Leader node without Token and ssh connection without Token?

untagged

2022-09-30 15:30

1 Answers

I was able to check the status api below.
https://www.nomadproject.io/api-docs/status

I was able to verify the IP address of the Leader node without setting Token as shown below.

$echo$NOMAD_TOKEN

$ echo$(curl-s$NOMAD_ADDR/v1/status/leader)
"10.15.81.108:4647"
$ nomad server members
Error querying servers: Unexpected response code: 403 (Permission denied)
$ 


2022-09-30 15:30

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.