<p>I have an Nginx ingress controller that I created with helm using this cmd</p>
<pre><code>helm upgrade --install nginx-ingress ingress-nginx/ingress-nginx \
    --namespace dev \
    --set controller.replicaCount=2 \
    --set controller.nodeSelector.&quot;kubernetes\.io/os&quot;=linux \
    --set controller.admissionWebhooks.patch.nodeSelector.&quot;kubernetes\.io/os&quot;=linux \
    --set controller.service.annotations.&quot;service\.beta\.kubernetes\.io/azure-load-balancer-health-probe-request-path&quot;=/healthz \
    --set controller.admissionWebhooks.patch.image.digest=&quot;&quot; \
    --set defaultBackend.nodeSelector.&quot;kubernetes\.io/os&quot;=linux
</code></pre>
<p>running this cmd kdev get svc -o wide (kdev is kubectl with dev ns)</p>
<p>I get</p>
<blockquote>
<p>nginx-ingress-ingress-nginx-controller             LoadBalancer<br />
10.0.106.37    20.84.232.100   80:32048/TCP,443:30725/TCP   4m7s   app.kubernetes.io/component=controller,app.kubernetes.io/instance=nginx-ingress,app.kubernetes.io/name=ingress-nginx</p>
</blockquote>
<p>and this is my service ingress file</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: dev-ingress
  namespace: dev
  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: /api/v1$uri
    
spec:
  ingressClassName: nginx
  rules:
  - http:
      paths:
      - path: /wallet
        pathType: Prefix
        backend:
          service:
            name: wallet-service
            port:
              number: 80
</code></pre>
<p>and running curl <a href="http://20.84.232.100/wallet" rel="nofollow noreferrer">http://20.84.232.100/wallet</a> just waits then returns timeout error</p>
<p>curl: (28) Failed to connect to 20.84.232.100 port 80 after 75005 ms: Operation timed out</p>
<p>I am not sure what I am doing wrong here because kdev get ingress -o wide gives me</p>
<pre><code>dev-ingress   nginx   *       20.84.232.100   80
</code></pre>
<p>Any help on resolving this is appreciated.</p>
<p>I am using Azure AKS
Thanks</p>

King
<p>What's your AKS version ? Can you also post your chart version <code>helm list --namespace dev</code>. There's chance if you have AKS version &gt; 1.22 and the last version of nginx that you need to configure your externalTrafficPolicy :</p>
<pre><code>--set controller.service.externalTrafficPolicy=Local
</code></pre>
<p>More details : <a href="https://github.com/Azure/AKS/issues/2903" rel="nofollow noreferrer">https://github.com/Azure/AKS/issues/2903</a></p>
<p>PS : You should always deploy helm chart by specifiying the --version to be sure to get the version you want (and not the random last one at the time you run the command).</p>
