<p><a href="https://github.com/kubernetes-retired/contrib/tree/master/ingress/controllers/nginx/examples/tls" rel="nofollow noreferrer">https://github.com/kubernetes-retired/contrib/tree/master/ingress/controllers/nginx/examples/tls</a> </p>

<p>I've tried to configure https for my ingress resource by this tutorial. I've done all the needed steps, but when I try to go to my site it send me: </p>

<p><a href="https://i.stack.imgur.com/23EGK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/23EGK.png" alt="enter image description here"></a></p>

<p>Should I do some additional steps?</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/from-to-www-redirect: "true"
spec:
  rules:
  - host: www.domain.com
    http:
      paths:
      - backend:
          serviceName: front-end-service
          servicePort: 80
        path: /
  - host: www.domain.com
    http:
      paths:
      - backend:
          serviceName: back-end-service
          servicePort: 3000
        path: /api
  tls:
  - hosts:
    - www.domain.com
    secretName: my-sectet
</code></pre>

<p>Sectet which I've created exist . I've checked it by using this command <code>kubectl get secrets</code> and name the same like I use in ingress resource.</p>

<p>If you need additiona info , pls let me know</p>

<p>If you are open to use jetstack then you can refer <a href="https://docs.cert-manager.io/en/latest/getting-started/install/kubernetes.html" rel="nofollow noreferrer">this</a> for installation via helm chart and thereafter following the steps in <a href="https://stackoverflow.com/questions/58423312/how-do-i-test-a-clusterissuer-solver/58436097?noredirect=1#comment103215785_58436097">this</a> stackoverflow post, you can get this done with a secure connection.</p>

<p>Jetstack will create the secret patched to ingress tls itself and just check the status of certificate once you map the secret name with ingress rule, there certificate should attain ready state.</p>
