<p><a href="https://i.stack.imgur.com/K2ynb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/K2ynb.png" alt="k8 ingress yaml which is used to deploy ingress in docker desktop k8 but not working address is always empty any one please help me on this  " /></a></p>
<p>k8 ingress yaml which is used to deploy ingress in docker desktop k8 but not working address is always empty any one please help me on this</p>
<pre><code>$ kubectl get ingress springboot-ingress
NAME                 HOSTS                  ADDRESS   PORTS   AGE
springboot-ingress   espark.com,localhost             80      12m
</code></pre>

Adarsh Kumar
<p>working code git url
<a href="https://github.com/adarshkumarsingh83/kubernetes/tree/master/springboot-kubernetes-ingress-lb" rel="nofollow noreferrer">https://github.com/adarshkumarsingh83/kubernetes/tree/master/springboot-kubernetes-ingress-lb</a></p>
<p>i have used below url</p>
<pre><code>$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.30.0/deploy/static/mandatory.yaml
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.30.0/deploy/static/provider/cloud-generic.yaml
$ kubectl apply -f $(pwd)/kubernates/ingress.yaml
</code></pre>
<p>and change the ingress yaml one line and it worked for me</p>
<pre><code>  
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: springboot-ingress
spec:
  rules:
    - host: espark.com
      http:
        paths:
          - path: /v1/api/address
            backend:
              serviceName: espark-address-service
              servicePort: 8080
          - path: /v1/api/employee
            backend:
              serviceName: espark-employee-service
              servicePort: 8080
    - host: localhost
      http:
        paths:
          - path: /v1/api/address
            backend:
              serviceName: espark-address-service
              servicePort: 8080
          - path: /v1/api/employee
            backend:
              serviceName: espark-employee-service
              servicePort: 8080
</code></pre>
