consul

HashiCorp Consul 服务发现与配置

补充说明

consul 提供服务注册、健康检查、KV 存储、服务网格和 ACL。它通常以 agent 形式运行,生产环境需要集群、加密和 ACL。

常用示例

consul agent -dev
consul members
consul catalog services
consul kv put app/config '{"debug":false}'
consul kv get app/config
consul services register service.hcl
consul snapshot save backup.snap
consul snapshot restore backup.snap
consul acl bootstrap
consul connect envoy -sidecar-for web

易错点与排错

相关命令