Annotation doesn't have a translation to traefik v2

The annotation seems to have been dropped off traefik v2 without a documentation on what the behavior is for non http/https protocols. The h2c protocol is not mentioned anywhere.

Looking at some old code ( it seems that the protocol could be h2c, however, looking at master, the protocol can only be http or https:

It seems that the protocol/scheme can be controlled with the RedirectScheme Middleware: but it's not very well specified the relationship between scheme and internal protocol

Also, does this actually return a 301/302 to the client or just translates the scheme on the fly?


in v2.0 and v2.1, the k8s ingress provider don't support annotations.

The annotations will be available in the next version (v2.2)