title: Call a service from any POD
body: <p>I would like how to call a service from any pod inside or outsite the node.</p>
  
  <p>I have 3 nodes with deployment and services. I already have a kube-proxy.</p>
  
  <p>I exec bash on other pod:</p>
  
  <pre><code>kubectl exec --namespace=develop myotherdpod-78c6bfd876-6zvh2 -i -t -- /bin/bash
  </code></pre>
  
  <p>And inside my other pod I have tried to exec curl:</p>
  
  <pre><code>curl -v http://myservice.develop.svc.cluster.local/user
  </code></pre>
  
  <p>This is my created service:</p>
  
  <pre><code>{
    "kind": "Service",
    "apiVersion": "v1",
    "metadata": {
      "name": "myservice",
      "namespace": "develop",
      "selfLink": "/api/v1/namespaces/develop/services/mydeployment-svc",
      "uid": "1b5fb4ae-ecd1-11e7-8599-02cc6a4bf8be",
      "resourceVersion": "10660278",
      "creationTimestamp": "2017-12-29T19:47:30Z",
      "labels": {
        "app": "mydeployment-deployment"
      }
    },
    "spec": {
      "ports": [
        {
          "name": "http",
          "protocol": "TCP",
          "port": 80,
          "targetPort": 8080
        }
      ],
      "selector": {
        "app": "mydeployment-deployment"
      },
      "clusterIP": "100.99.99.140",
      "type": "ClusterIP",
      "sessionAffinity": "None"
    },
    "status": {
      "loadBalancer": {}
    }
  }
  </code></pre>