<p>Ingress is not forwarding traffic to pods.
Application is deployed on Azure Internal network.
I can access app successfully using pod Ip and port but when trying Ingress IP/ Host I am getting 404 not found. I do not see any error in Ingress logs.
Bellow are my config files.
Please help me if I am missing anything or a how I can troubleshoot to find issue.</p>
<p>Deployment.yaml</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: aks-helloworld-one
spec:
  replicas: 1
  selector:
    matchLabels:
      app: aks-helloworld-one
  template:
    metadata:
      labels:
        app: aks-helloworld-one
    spec:
      containers:
      - name: aks-helloworld-one
        image: &lt;image&gt;
        ports:
            - containerPort: 8290
              protocol: &quot;TCP&quot;
        env:
        - name: env1
          valueFrom:
              secretKeyRef:
                name: configs
                key: env1
        volumeMounts:
         - mountPath: &quot;mnt/secrets-store&quot;
           name: secrets-mount
      volumes:      
        - name: secrets-mount
          csi:
            driver: secrets-store.csi.k8s.io
            readOnly: true
            volumeAttributes:
              secretProviderClass: &quot;azure-keyvault&quot;
      imagePullSecrets:
        - name: acr-secret
---
apiVersion: v1
kind: Service
metadata:
  name: aks-helloworld-one
spec:
  type: ClusterIP
  ports:
  - name: http
    protocol: TCP
    port: 8080
    targetPort: 8290
  selector:
    app: aks-helloworld-one
</code></pre>
<p>Ingress.yaml</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: hello-world-ingress
  namespace: ingress-basic
  annotations:
    nginx.ingress.kubernetes.io/ssl-redirect: &quot;false&quot;
    nginx.ingress.kubernetes.io/use-regex: &quot;true&quot;
    nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
  ingressClassName: nginx
  rules:
  - http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: aks-helloworld
            port:
              number: 80
  
</code></pre>

megha
<p>Correct your service name and service port in ingress.yaml.</p>
<pre><code>spec:
  ingressClassName: nginx
  rules:
  - http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            # wrong: name: aks-helloworld
            name: aks-helloworld-one  
            port:
              # wrong: number: 80
              number: 8080
</code></pre>
<p>Actually, you can use below command to confirm if ingress has any endpoint.</p>
<pre><code>kubectl describe ingress hello-world-ingress -n ingress-basic
</code></pre>
