Slide 12
Slide 12 text
AutoConfig
// config.json
{
"data_dir": "./data",
"bind_addr": "192.168.1.239",
"advertise_addr": "192.168.1.239",
"ca_file": "./consul-agent-ca.pem",
"auto_config": {
"enabled" : true,
"server_addresses": ["192.168.1.1"],
"intro_token": “eyJhbGciOiJFUzI1N…”
}
}
// config.json
{
"data_dir": "./data",
"bind_addr": "192.168.1.239",
"advertise_addr": "192.168.1.239",
"retry_join": "192.168.1.1",
"encrypt": "f3htvkx3YdoXrODa/
NEQRn0TY09tj13iiy+PeJJ8nFk=",
"verify_outgoing": true,
"verify_server_hostname": true,
"ca_file": "./consul-agent-ca.pem",
"cert_file": "./dc1-client-consul-0.pem",
"key_file": "./dc1-client-consul-0.pem.pem",
"acl": {
"enabled": true,
"tokens": {
"agent": "fe31ce76-9bbf-dd55-
c749-1df6224ff1d3"
}
}
}