Hi,
After spending several hours on the webs and in this group, I'm creating this post. I have a Consul backend and want to achieve a Vault HA setup.
I have 2 vault nodes, both running in docker (Same as Consul).
Host 1:
---8<---
backend "consul" {
check_timeout = "5s"
path = "vault/"
scheme = "http"
}
listener "tcp" {
tls_disable = 0
tls_key_file = "/vault/ssl/vault.service.dj-wasabi.local.key"
tls_cert_file = "/vault/ssl/vault.service.dj-wasabi.local.crt"
}
disable_mlock = false
---8<---
Host has ip: 10.10.10.11 and Consul (Agent) is listening on 10.10.10.11. The following environment vars are set:
Host 2:
---8<---
backend "consul" {
check_timeout = "5s"
path = "vault/"
scheme = "http"
}
listener "tcp" {
tls_disable = 0
tls_key_file = "/vault/ssl/vault.service.dj-wasabi.local.key"
tls_cert_file = "/vault/ssl/vault.service.dj-wasabi.local.crt"
}
disable_mlock = false
---8<---
Host has ip: 10.10.10.12 and Consul (Agent) is listening on 10.10.10.12. The following environment vars are set:
Is this a correct vault ha configuration?
When I do a seal or stop the "active" container (Checked with my own and the official vault docker container) it takes at least 30 seconds before 'active.vault.service.dj-wasabi.local' is returning the other ip address. When checking the Consul UI it keeps holding the 'active' tag for a while. In the mean time, the 'active.vault.service.dj-wasabi.local' isn't returning a correct ip and around 20 - 30 seconds later it returns the ip of the 2nd vault instance (And in the Consul UI the 'active' tag is on the 2nd vault too')
After reading a lot of information in this group and the official documentation, I don't see - a hopefully small - configuration error in my setup...
Please tell me you see it? :-)
Consul: 0.7.2
Vault: 0.6.4
Thanks in advance.
Kind regards,
Werner