title: Kubernetes Cross Namespace Ingress Network
body: <p>I have a simple ingress network, I want to access services at different namespaces, from this ingress network.</p>
  
  <p>How I can do this? 
  My ingress network yaml file: </p>
  
  <pre><code>apiVersion: extensions/v1beta1
  kind: Ingress
  metadata:
    name: ingress
  spec:
    rules:
   - host: api.myhost.com
   http:
   paths:
    - backend:
        serviceName: bookapi-2
        servicePort: 8080
      path: /booking-service/
  </code></pre>
  
  <p>I've set the ExternalNames service type to the yaml file: </p>
  
  <pre><code> apiVersion: v1
   kind: Service
   metadata:
     name: bookapi-2
     namespace: booking-namespace
   spec:
     type: ExternalName
     externalName: bookapi-2
     ports:
       - name: app
       protocol: TCP
        port: 8080
        targetPort: 8080
     selector:
        app: bookapi-2
        tier: backend-2
  </code></pre>