I am using traefik 2.0.0 and I get unable to obtain ACME certificate. I get the following error:cannot get ACME client ACME challenge not specified, please select TLS or HTTP or DNS Challenge
time="2019-11-06T04:39:22Z" level=error msg="Unable to obtain ACME certificate for domains \"admin2.oneview-seniorliving.com\": unable to generate a certificate for the domains [admin2.oneview-seniorliving.com]: acme: error: 429 :: POST :: https://acme-v02.api.letsencrypt.org/acme/new-order :: urn:ietf:params:acme:error:rateLimited :: Error creating new order :: too many certificates already issued for exact set of domains: admin2.xxx-xxx.com: see https://letsencrypt.org/docs/rate-limits/, url: " providerName=oneview.acme rule="HOST(`admin2.xxx-xxxx.com`)" routerName=traefik2-traefik2-dashboard-11d3e8b302ef452df8b9
I get that, but no where in the traefik config i said generate a cert every second. traefik was going crazy requesting certs from let's encrypt. not sure why it was doing it.
Well requesting certs often can happen if you misconfgure it: if you did not specify persistent storage correcly for acme info, every time you restart container, traefik has absolutely no way to know if you already requested cert not, so naturally it issues a request. That's why until you get your whole set up working it is not recommended to use prod LE. Do it only when you are happy that everything else if working.
You will get a fake certificate but you can try your configuration and avoid being hit bei LE rate limits.
After all works as expected switch to default LE caserver.
Be careful: TLS with TCP only works for some layer-7 protocols which support both SNI extension + TLS handshake.
For instances, mongoDB or HTTPS are known to work with TCP + TLS.
But if you are using SSH, OpenVPN, MySQL/PostgreSQL,MariaDB, then you cannot terminate TLS at Traefik level. But in this case, you can still enable TLS at the backend level, and do NOT enable the tls on Traefik level: traffic will be passed "as it" (e.g. encrypted) by Traefik to the backend, leading in end-to-end encryption.
What is the protocol you are using for the application syncgateway ? I suppose it's couchbase given the namespace name?