Closed cchatfield closed 4 years ago
Hi @cchatfield,
Thanks for filing this! I've looked into it, and there's definitely a bug here. We're not properly stripping spaces off of the prepared_query
tag while processing, so your second prepared query is not getting recognized and properly parsed.
For your case, this manifests as only two upstreams being registered:
I've put together a fix in #233 , but you could fix it for now by taking out the spaces between the upstreams in your annotation:
"consul.hashicorp.com/connect-service-upstreams": "prepared_query:active_vault:8200,vault:8201,prepared_query:6687bd19-5654-76be-d764-5bcc67fe8fb5:8202"
Envoy: envoyproxy/envoy:v1.10.0 Consul: consul:1.6.2 Consul k8s: "hashicorp/consul-k8s:0.9.5"
I am using the following annotation to define upstreams:
The prepared query is registered with consul and returns this when executed:
The "vault" upstream is available on 8201, but neither prepared query is registered.
Envoy Sidecar: