You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the output of any logs you can share; if you can it would be very helpful to turn on debug logging by adding logging: { level: "DEBUG"} to your ContainerPilot configuration.
service registration failed: Put https://127.0.0.1:8501/v1/agent/service/register: remote error: tls: bad certificate
service update TTL failed: Put https://127.0.0.1:8501/v1/agent/check/update/service:consul-vault-test: remote error: tls: bad certificate
The text was updated successfully, but these errors were encountered:
teutat3s
changed the title
consul with TLS needs CONSUL_HTTP_SSL_VERIFY=true set explicitly
consul with TLS does not read env vars set by -putenv
Sep 29, 2019
This is in a SmartOS zone. Configured consul with containerpilot from the autopilotpattern and documented environment variables by HashiCorp for TLS:
These are set for containerpilot via
containerpilot -putenv
in thepreStart()
function ofconsul-manage
.I'd expect containerpilot to work with these env vars set like this, but instead I needed to do something like
or change the configuration file
containerpilot.json5
with the following consul stanza to make TLS work.Otherwise the below error messages appeared.
Took me some time to figure this out... What would be the correct way to handle this?
containerpilot -version
3.8.0
logging: { level: "DEBUG"}
to your ContainerPilot configuration.The text was updated successfully, but these errors were encountered: