I'm trying to get a basic grpc client to talk to a grpc server through traefik. When using the file provider, this just works fine. But when I move it to the consulcatalog provider, it fails with:
DEBU[2019-10-25T13:57:54Z] '500 Internal Server Error' caused by: unsupported protocol scheme "h2"
And doesn't even connect to the backend. Any ideas?
working config:
defaultEntryPoints = ["http"]
[entryPoints]
[entryPoints.http]
address = ":8888"
[api]
[file]
[backends]
[backends.backend1]
[backends.backend1.servers.server1]
# Access on backend with h2c
url = "h2c://x.x.x.x:12345"
[frontends]
[frontends.frontend1]
backend = "backend1"
entrypoints = ["http"]
[frontends.frontend1.routes.test_1]
rule = "Host:playground-grpc-service-service"
consulcatalog config:
defaultEntryPoints = ["http"]
[entryPoints]
[entryPoints.http]
address = ":8888"
[api]
[file]
[consulcatalog]
prefix = "traefik-grpc"
exposedByDefault = false
consul tags: "traefik-grpc.enable=true", "traefik-grpc.protocol=h2"