<p>I enabled in my backend tls. So every traffic needs to go through &quot;https://.....&quot;.
I am able to access it locally or with Port-Forwarding in Kubernetes.
But I cannot access it through the DNS (e.g. <a href="https://hostname.net/backend/...." rel="nofollow noreferrer">https://hostname.net/backend/....</a>).</p>
<p>I get as answer:</p>
<pre><code>Bad Request
This combination of host and port requires TLS.
</code></pre>
<p>I read that the certificates could be wrong, but with port-forwarding everything works, so I don't think this could be the problem. Certificates are self-signed. I have only on my server certificates.</p>
<p>Before I add tls, everythinkg works fine.</p>
<p>Here is my service and my ingress:</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
  name: app-Core
  namespace: namespace
spec:
  clusterIP: xxx.xxx.xxx.xxx
  ports:
  - name: http
    port: 8080
    protocol: TCP
    targetPort: 8080
  selector:
    app.kubernetes.io/instance: core
    app.kubernetes.io/name: app
  sessionAffinity: None
  type: ClusterIP
status:
  loadBalancer: {}
----------------------------------
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /$2
  name: core-app-core
  namespace: namespace
spec:
  rules:
  - host: hostname
    http:
      paths:
      - backend:
          serviceName: app-Core
          servicePort: 8080
        path: /backend(/|$)(.*)
      - backend:
          serviceName: app-Core
          servicePort: 8080
        path: /camunda(/|$)(.*)
status:
  loadBalancer:
    ingress:
    - ip: xxx.xxx.xxx.xxx


</code></pre>

goku736
<p>Try to add <code>nginx.ingress.kubernetes.io/backend-protocol: https</code> annontation to your ingress definition.</p>
<p>Using  <code>backend-protocol</code>  annotations is possible to indicate how NGINX should communicate with the backend service.
By default NGINX uses  <code>HTTP</code>.</p>
<p>Take a look: <a href="https://kubernetes.github.io/ingress-nginx/user-guide/tls/" rel="nofollow noreferrer">ingress-tls</a>, <a href="https://kubernetes.github.io/ingress-nginx/user-guide/nginx-configuration/annotations/#backend-protocol" rel="nofollow noreferrer">backend-protocol</a>.</p>
