# Configure TLS - Traefik 2 and Kubernetes

**URL:** <https://community.traefik.io/t/configure-tls-traefik-2-and-kubernetes/4486>\
**Category:** Traefik v2\
**Tags:** rancher, kubernetes-crd, kubernetes-ingress\
**Created:** [February 18, 2020, 2:26pm UTC](https://community.traefik.io/t/configure-tls-traefik-2-and-kubernetes/4486 "2020-02-18T14:26:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iohenkies](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/iohenkies/32/1610_2.png) [@iohenkies](https://community.traefik.io/u/iohenkies)\
**Post date:** [February 18, 2020, 2:26pm UTC](https://community.traefik.io/t/configure-tls-traefik-2-and-kubernetes/4486/1 "2020-02-18T14:26:43Z")

</div>

Hi all. I've configured Traefik 2 on Kubernetes like so:

> **[How to run Traefik2 on Kubernetes with Network Policies](https://codar.nl/howto-run-traefik2-on-kubernetes-with-network-policies/)**
>
> How to run and use Traefik 2 on Kubernetes, a detailed guide with explanation to get you started! Part 1 installing and configuring Traefik 2 securely.

This seems to work with the below simple test:

```auto
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: ra-demo
  namespace: ra-demo
spec:
  entryPoints:
    - http
  routes:
    - match: Host(`ra-demo.domain.com`)
      kind: Rule
      services:
        - name: ra-demo
          port: 8080

```

But how can I add TLS to this configuration? Our certificates are in Kubernetes secrets. Thanks.
