Consider a <code>Service</code>, selecting a <code>Pod</code> running the command <code>nc localhost 8080 -l</code>:</p><pre><code class=language-yaml data-expandlinks=true data-repo=istio>apiVersion: v1
kind: Service
metadata:
  name: netcat
spec:
  ports:
  - port: 8080
    protocol: TCP
  selector:
    app: netcat
</code></pre><p>Because the application is serving traffic on <code>localhost</code>, it is not accessible from other pods.</p><p>The above example shows using the simple <code>nc</code> tool. 