title: Expose a kubernetes deployment (frontend) using ingress controller
body: <p>I am deploying a number of docker containers of micro-services and angular frontend on Kubernetes. I have exposed the services using an ingress controller specifying each service using this, and specifying paths in backend.</p>
  
  <pre><code>apiVersion: extensions/v1beta1
  kind: Ingress
  </code></pre>
  
  <p>For my frontend, I have created a service with type loadbalancer.</p>
  
  <pre><code>apiVersion: v1
  kind: Service
  metadata:
    annotations:
      service.beta.kubernetes.io/azure-load-balancer-resource-group: my-resource-group
    name: myapp-svc
    namespace: ui
  spec:
    loadBalancerIP: SOME_IP_ADDRESS
    type: LoadBalancer
    ports:
    - port: 80
   selector:
     app: myapp
  </code></pre>
  
  <p>This works fine but now I have two IP addresses, one for the UI loadbalancer, and other of the ingress controller (for APIs). </p>
  
  <p>Can I do this with just one IP address?</p>
  
  <p>How can I expose the UI using ingress controller itself without creating external loadbalancer?</p>