<p>I have installed nginx ingress in kubernetes from official documenation. But while configuring the rules without mentioning the &quot;host&quot;. I am getting the below erros.</p>
<p>error
++++++
spec.rules[0].host: Required value</p>
<p>Is it possible to configure it without host as I want to access it using only IP address</p>
<p>and I also found the below deployment file with which I am able to apply rules without &quot;host&quot;. But not sure is this is safe to use. Please guide me here</p>
<p>kubectl apply -f <a href="https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.44.0/deploy/static/provider/cloud/deploy.yaml" rel="nofollow noreferrer">https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.44.0/deploy/static/provider/cloud/deploy.yaml</a></p>

akhil chowdary
<p>Do you mean to configure the ingress? The ingress controller is different from ingress itself. If you are configuring ingress, then host is completely optional. If host is omitted, all the http traffic is directed through IP address by default. Refer to this documentation for more info <a href="https://kubernetes.io/docs/concepts/services-networking/ingress/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/services-networking/ingress/</a></p>
