title: Traefik v2.0 self signed certificate on Kubernetes
body: <p>I am running Traefik (<strong>v2.0</strong>) as ingress gateway for my EKS cluster. Traefik ingress is working fine.<br />
  Now, I need to add https support for my ingress using self signed certificate. For this, I have:</p>
  <ul>
  <li>Created a IngressRoute from http to https redirectio -&gt; This works fine</li>
  <li>Created a secret having the key and cert of my self-signed certificate</li>
  </ul>
  <blockquote>
  <pre><code>kubectl create secret tls tlssecret --key=&quot;eks.tls.key&quot; --cert=&quot;eks.tls.crt&quot;
  </code></pre>
  </blockquote>
  <ul>
  <li>Added tls secret to my IngressRoute deployment:</li>
  <li>apiVersion: traefik.containo.us/v1alpha1
  kind: IngressRoute
  metadata:
  name: pulseingressroutetls
  namespace: pulse
  spec:
  entryPoints:
  - websecure
  tls:
  secretName: pulsetlssecret<br />
  routes:
  - match: PathPrefix(<code>/auth</code>)
  ...</li>
  </ul>
  <p>After this deployment, when I browse ingress url, it still presents me the TRAEFIK DEFAULT CERT, not my self-signed certificate.</p>
  <p>Please let me know what I am doing wrong here? Is there any other way of doing it?</p>