下载安装confd

$ mkdir -p $GOPATH/src/github.com/kelseyhightower
$ git clone https://github.com/kelseyhightower/confd.git $GOPATH/src/github.com/kelseyhightower/confd
$ cd $GOPATH/src/github.com/kelseyhightower/confd
$ ./build
root@ubuntu:~# confd -version
confd 0.12.0-dev

配置文件

confd支持一下数据库作为后端

  • etcd
  • consul
  • vault
  • environment variables
  • redis
  • zookeeper
  • dynamodb
  • stackengine
  • rancher
vim /etc/confd.conf

backend = "etcd"     
log-level = "info"
interval = 10
nodes = [
  "http://configuration.downtown8.cn:2379",
]

 

  

相关文章:

  • 2021-10-13
  • 2021-09-25
  • 2021-06-13
  • 2022-12-23
  • 2021-08-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-30
  • 2022-03-05
  • 2022-12-23
  • 2021-04-11
  • 2021-11-18
  • 2021-12-30
相关资源
相似解决方案