[solved] Failed to set up scheme redirection with CLI

Hello,

I use CLI to start my Traefik as Daemonset in K8S.

Here are the args I use:

args:
           - --providers.kubernetescrd
           - --serversTransport.insecureSkipVerify=true
           - --entrypoints.web.address=:"80"
           - --entrypoints.websecure.address=:"443"
           - --entrypoints.web.http.redirections.entryPoint.to=websecure

But I got this error at startup:

2020/11/19 14:09:09 command traefik error: failed to decode configuration from flags: field not found, node: http

I followed this doc :

If I do not set the redirect, it works in http or https, but when I try to set the redirection, it does not.

Where is my error ?

My mistake, I was in 2.1.1.
I upgraded to latest release and it's working fine