Global redirect and global default entrypoints

I always used:

--defaultentrypoints="http,https" \
--entryPoints="Name:http Address::80 Redirect.EntryPoint:https" \
--entryPoints='Name:https Address::443 TLS' \

in traefik:v1.7, but seems its not possible to globaly set same in traefik:v2

Any idea? I am using --providers.kubernetesingress

Or default entrypoints are always defined && true ?

For example:

        --entrypoints.http.Address=:80
        --entrypoints.https.Address=:443
        --entrypoints.http=true
        --entrypoints.https=true

?

This is my service:

---
apiVersion: v1
kind: Namespace
metadata:
  name: whoami
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: whoami
  namespace: whoami
  labels:
    app: whoami
spec:
  replicas: 3
  template:
    metadata:
      labels:
        app: whoami
    spec:
      containers:
        - name: whoami
          image: containous/whoami
          imagePullPolicy: "IfNotPresent"
          resources:
            requests:
              cpu: 100m
              memory: 128Mi
            limits:
              cpu: 250m
              memory: 256Mi
          ports:
            - containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
  name: whoami-service
  namespace: whoami
spec:
  ports:
    - protocol: TCP
      port: 80
      name: http
  selector:
    app: whoami
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: whoami-ingress
  namespace: whoami
spec:
  rules:
  - host: whoami.example.com
    http:
      paths:
      - path: /
        backend:
          serviceName: whoami-service
          servicePort: http

How can I use -providers.kubernetesingress and do http->https redirection.

I did not find any info here:
https://docs.traefik.io/providers/kubernetes-ingress/

Hello,

Take a look at: