<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>As mentioned in the comments, this tutorial is guiding you through setting up a self-signed certificate, which is not trusted by your browser. You would need to provide a cert your browser trusts or temporarily ignore the error locally. LetsEncrypt is an easy and free way to get a real cert, and cert-manager is a way to do that via Kubernetes.</p>
