<p>My service is not connecting/directing traffic to pod. I have 'sshed' into the pod and the server is working properly but the service times out.</p>

<p>Deployment File:</p>

<pre><code>apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: venues
spec:
  replicas: 1
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 1
  minReadySeconds: 5
  template:
    metadata:
      labels:
        app: venues
        version: v0.3
    spec:
      containers:
      - name: venues
        image: some-image
        imagePullPolicy: Always
        ports:
          - containerPort: 3000
          name: http-server
</code></pre>

<p>Service File:</p>

<pre><code>apiVersion: v1
kind: Service
metadata:
  name: venues
  labels:
    name: venues
spec:
  type: LoadBalancer
  ports:
    - port: 3000
      targetPort: 3000
      protocol: TCP
  selector:
    name: venues
</code></pre>

<p>Your selector in the service is wrong: you need to select a label of the deployment, not the container name. So</p>

<pre><code>selector:
  app: venues
</code></pre>

<p>should work. Optionally you could add also <code>version: v0.3</code> if needed.</p>
