Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Consul 目前支持分布式配置,其中键/值配置跨服务器复制。假设我每台服务器有一个服务,我如何配置 consul 以使每个服务都有唯一的配置。
您可以为每个服务添加一个基本命名空间。假设您有相同服务的 prod 和 dev 配置。您可以在 /prd/service/key/value 和 /dev/service/key/value 中有不同的配置 KV。然后,您可以将适当的 acl 添加到每个基本命名空间以进行访问控制。