<p>Currently working on some ingress in kubernetes cluster, in ingress there are 2 hosts. I am wondering why is tls-host different from rules:host?</p>
<pre><code>spec:
  rules:
  - host: test1.something.se
    http:
      paths:
      - pathType: Prefix
        path: /
        backend:
          service:
            name: my-service
            port:
              number: 5000
  tls:
  - hosts:
    - test2.something.se
    secretName: tls-secret 
</code></pre>

Python Newbie
<p>That indicates that the host <code>test2.something.se</code> has https traffic enabled, and the certificate is stored in the <code>tls-secret</code> secret</p>
<p>Since I don't see a rule specifying that host, or a fallback default rule, traffic for test2 will 404.</p>
<p>Traffic for <code>test1.something.se</code> will not be https enabled because its hostname isn't under the <code>tls.hosts</code> list</p>
