title: Kubernetes Multiple Service Conflict
body: <p>I'm newbie in Kubernetes. I created a Kubernetes Cluster on Amazon <a href="https://aws.amazon.com/eks/" rel="nofollow noreferrer">EKS</a>.
  I'm trying to setup multiple kubernetes services to run multiple ASP.NET applications in one cluster. But facing a weird problem. </p>
  
  <p>Everything runs fine when there is only 1 service. But whenever i create 2nd service for 2nd application it creates a conflict. The conflict is sometime service 1 url load service 2 application and sometime it loads service 1 application and same happens with service 2 url on simple page reload.</p>
  
  <p>I've tried both Amazon Classic ELB (With LoadBalancer Service Type) and Nginx Ingress controller (With ClusterIp Service Type). This error is common in both approaches.</p>
  
  <p>Both services and deployments are running on port 80, I even tried different ports for both services and deployments to avoid port conflict but same problem.</p>
  
  <p>I've checked the deployment &amp; service status, and pod log everything looks fine. No error or warning at all</p>
  
  <p>Please guide how i can fix this error.
  Here is the yaml file of both services for nginx ingress</p>
  
  <pre><code># Service 1 for deployment 1 (container port: 1120)
  apiVersion: v1
  kind: Service
  metadata:
    creationTimestamp: 2018-12-05T14:54:21Z
    labels:
      run: load-balancer-example
    name: app1-svc
    namespace: default
    resourceVersion: "463919"
    selfLink: /api/v1/namespaces/default/services/app1-svc
    uid: a*****-****-****-****-**********c
  spec:
    clusterIP: 10.100.102.224
    ports:
    - port: 1120
      protocol: TCP
      targetPort: 1120
    selector:
      run: load-balancer-example
    sessionAffinity: None
    type: ClusterIP
  status:
    loadBalancer: {}
  </code></pre>
  
  <p>2nd Service</p>
  
  <pre><code># Service 2 for deployment 2 (container port: 80)
  apiVersion: v1
  kind: Service
  metadata:
    creationTimestamp: 2018-12-05T10:13:33Z
    labels:
      run: load-balancer-example
    name: app2-svc
    namespace: default
    resourceVersion: "437188"
    selfLink: /api/v1/namespaces/default/services/app2-svc
    uid: 6******-****-****-****-************0
  spec:
    clusterIP: 10.100.65.46
    ports:
    - port: 80
      protocol: TCP
      targetPort: 80
    selector:
      run: load-balancer-example
    sessionAffinity: None
    type: ClusterIP
  status:
    loadBalancer: {}
  </code></pre>
  
  <p>Thanks</p>