<p>When I am trying to create an ingress resource for my Kubernetes cluster(ingress controller is already created), Ingress resource/rules are creating and I am able to see in the kubectl get ing.
But when I do kubectl describe, I am seeing a error:</p>
<blockquote>
<p>Default backend: default-http-backend:80 (&lt;error: endpoints
“default-http-backend” not found&gt;)</p>
</blockquote>
<p>Is this expected?? I am not even able to connect to my application using the DNS name (<code>hotel.example.com</code>) which I defined in Ingress resource. Is it due to this http-backend error?
If not, any suggestions to make the application connect!!</p>
<pre><code>[dockuser@hostname]$ kubectl describe ing hotel-ingress -n hotel
Name:             hotel-ingress
Namespace:        hotel
Address:
Default backend:  default-http-backend:80 (&lt;error: endpoints &quot;default-http-backend&quot; not found&gt;)
Rules:
  Host         Path  Backends
  ----         ----  --------

  hotel.example.com
               /     hotel-svc:80 (10.36.0.2:80,10.44.0.2:80)
Annotations: 
Events:
</code></pre>
<p>deployment files:
namespaces.yaml</p>
<pre><code>apiVersion: v1
kind: Namespace
metadata:
  name: hotel
</code></pre>
<p>ingress.yaml</p>
<pre><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: hotel-ingress
  namespace: hotel
spec:
  rules:
  - host: hotel.example.com
    http:
      paths:
      - path: /
        backend:
          serviceName: hotel-svc
          servicePort: 80
</code></pre>
<p>deployment.yaml</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: hotel
  namespace: hotel
spec:
  replicas: 2
  selector:
    matchLabels:
      app: hotel
  template:
    metadata:
      labels:
        app: hotel
    spec:
      containers:
      - name: hotel
        image: nginxdemos/hello:plain-text
        ports:
          - containerPort: 80
</code></pre>
<p>service.yaml</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
  name: hotel-svc
  namespace: hotel
spec:
  selector:
    app: hotel
  ports:
    - port: 80
      targetPort: 80
</code></pre>

<p>You may want add <code>defaultBackend</code> as a part of your Ingress definition like so</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: default-backend-ingress-example
spec:
  defaultBackend:
    service:
      name: hotel-svc
      port:
        number: 80
</code></pre>
<p>Environment</p>
<pre><code>minikube version: v1.21.0
kubectl version: v1.20.7
</code></pre>
