<p>I am trying to configure my ingress to expose one of my services for any request for a host ending with <code>.mywebsite.com</code></p>
<p>I tried <code>*.mywebsite.com</code> but it does not work.
Is there a way to configure the ingress to do so ?</p>
<p>My sub-domains are dynamically handled by the service, and the DNS is configured with a wildcard record.</p>

Michaël Carrette
<p>You can try the below manifest file.</p>
<p>Prerequisite: k8s version 1.19+</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ingress-wildcard-host
spec:
  rules:
  - host: &quot;*.mywebsite.com&quot;
    http:
      paths:
      - pathType: Prefix
        path: &quot;/&quot;
        backend:
          service:
            name: &lt;your_service_name_here&gt;
            port:
              number: &lt;port_number_here&gt;

</code></pre>
