# Global redirect and global default entrypoints

**URL:** <https://community.traefik.io/t/global-redirect-and-global-default-entrypoints/1806>\
**Category:** Traefik v2\
**Tags:** kubernetes-ingress\
**Created:** [September 23, 2019, 3:15pm UTC](https://community.traefik.io/t/global-redirect-and-global-default-entrypoints/1806 "2019-09-23T15:15:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukasmrtvy](https://avatars.discourse-cdn.com/v4/letter/l/e79b87/32.png) [@lukasmrtvy](https://community.traefik.io/u/lukasmrtvy)\
**Post date:** [September 23, 2019, 3:15pm UTC](https://community.traefik.io/t/global-redirect-and-global-default-entrypoints/1806/1 "2019-09-23T15:15:35Z")

</div>

I always used:

```auto
--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:

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

```

?

This is my service:

```auto
---
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/](https://docs.traefik.io/providers/kubernetes-ingress/)

---

<div class="post-metadata">

**Author:** ![ldez](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/ldez/32/5_2.png) [@ldez](https://community.traefik.io/u/ldez)\
**Post date:** [September 23, 2019, 4:09pm UTC](https://community.traefik.io/t/global-redirect-and-global-default-entrypoints/1806/2 "2019-09-23T16:09:10Z")

</div>

Hello,

Take a look at:

- [A global http -\> https redirection?](https://community.containo.us/t/a-global-http-https-redirection/864)
- [Global http to https redirect in v2](https://community.containo.us/t/global-http-to-https-redirect-in-v2/1658)
