mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
feat(*): bootstrap initial commit
Setup the flags, and checkin the docs. Lets do this!
This commit is contained in:
@@ -48,6 +48,7 @@ type Config struct {
|
||||
|
||||
Addr string `toml:"addr" env:"ETCD_ADDR"`
|
||||
BindAddr string `toml:"bind_addr" env:"ETCD_BIND_ADDR"`
|
||||
BootstrapURL string `toml:"bootstrap_url" env:"ETCD_BOOTSTRAP_URL"`
|
||||
CAFile string `toml:"ca_file" env:"ETCD_CA_FILE"`
|
||||
CertFile string `toml:"cert_file" env:"ETCD_CERT_FILE"`
|
||||
CPUProfileFile string
|
||||
@@ -225,6 +226,7 @@ func (c *Config) LoadFlags(arguments []string) error {
|
||||
|
||||
f.StringVar(&c.Name, "name", c.Name, "")
|
||||
f.StringVar(&c.Addr, "addr", c.Addr, "")
|
||||
f.StringVar(&c.BootstrapURL, "bootstrap-url", c.BootstrapURL, "")
|
||||
f.StringVar(&c.BindAddr, "bind-addr", c.BindAddr, "")
|
||||
f.StringVar(&c.Peer.Addr, "peer-addr", c.Peer.Addr, "")
|
||||
f.StringVar(&c.Peer.BindAddr, "peer-bind-addr", c.Peer.BindAddr, "")
|
||||
|
||||
@@ -26,6 +26,7 @@ Options:
|
||||
-vv Enabled very verbose logging.
|
||||
|
||||
Cluster Configuration Options:
|
||||
-bootstrap-url=<url> URL to use for bootstrapping the peer list.
|
||||
-peers-file=<path> Path to a file containing the peer list.
|
||||
-peers=<host:port>,<host:port> Comma-separated list of peers. The members
|
||||
should match the peer's '-peer-addr' flag.
|
||||
|
||||
Reference in New Issue
Block a user