<p>I am using traefik ingress controller in Kubernetes. It is configured to redirect all request to https and terminate tls connection before passing the request to backend service.</p>
<p>Is it possible to only enable http for one particular ingress config but https for other ingresses ? Any example would be helpful.</p>
<p>I only want to enable http(no https) for this ingress</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: test-ingress
spec:
  rules:
  - host: testdomain.com
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: test-service
            port:
              number: 8080
</code></pre>

<p>You can create the one ingress with the config like</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
annotation:
  kubernetes.io/ingress.class: &quot;traefik&quot;
  ingress.kubernetes.io/force-ssl-redirect: &quot;false&quot;  
  ingress.kubernetes.io/ssl-redirect: &quot;false&quot;
  traefik.ingress.kubernetes.io/frontend-entry-points: http
metadata:
  name: test-ingress
spec:
  rules:
  - host: testdomain.com
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: test-service
            port:
              number: 8080
</code></pre>
<p>you can get more idea about the annotation from here : <a href="https://doc.traefik.io/traefik/v1.6/configuration/backends/kubernetes/" rel="nofollow noreferrer">https://doc.traefik.io/traefik/v1.6/configuration/backends/kubernetes/</a></p>
