title: How to get the service IP in Kubernetes?
body: <p>I ran a local cluster according to its official doc <a href="https://github.com/kubernetes/kubernetes/blob/release-1.0/docs/getting-started-guides/docker.md" rel="noreferrer">here</a>. I followed the steps and it worked properly until I set a replica and tried to exposed it. I mean:</p>
  
  <pre><code>./kubectl expose rc nginx --port=80
  </code></pre>
  
  <p>the output is this:</p>
  
  <pre><code>NAME      LABELS      SELECTOR    IP(S)     PORT(S)
  nginx     run=nginx   run=nginx             80/TCP
  </code></pre>
  
  <p>When I tried another time it sayed the the same service is running. How can I figure out the IP?</p>