In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
1. Add and enable acl in the configuration file / etc/nomad/server.hcl of the server node, as follows:
Server {
Enabled = true
Bootstrap_expect = 1
}
Acl {
Enabled = true
Token_ttl = "30s"
Policy_ttl = "60s"
}
Restart the nomad service after configuration is added: service nomad restart
2. Generate the initial token
After enabling the ACL system, we need to generate the initial token. The first token is used to boot the system and should be careful not to lose it. After enabling the ACL system, we use Bootstrap CLI
Nomad acl bootstrap
Accessor ID = 5b7fd453-d3f7-6814-81dc-fcfe6daedea5
Secret ID = 9184ec35-65d4-9258-61e3-0c066d0a45c5
Name = Bootstrap Token
Type = management
Global = true
Policies = nbat a
Create Time = 2017-09-11 17 38 10.999089612 + 0000 UTC
Create Index = 7
Modify Index = 7
After the initial boot, it cannot be performed again unless it is reset. Be sure to save this AccessorID and SecretID. The boot token is a management type token, which means it can do anything. It should be used to set the ACL policy and create additional ACL tokens. Boot tokens can be deleted, just like any other token, so you should be careful not to revoke all administrative tokens.
3. Set anonymity policy
Store our token secret ID
Export NOMAD_TOKEN= "BOOTSTRAP_SECRET_ID"
Write out the payload
Cat > payload.json
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.