title: Only 1 pod handles all requests in Kubernetes cluster
body: <p>Here is a manifest file for minikube Kubernetes, for a deployment and a service:</p>
  
  <pre><code>apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: hello-deployment
  spec:
    selector:
      matchLabels:
        app: hello
    replicas: 3
    template:
      metadata:
        labels:
          app: hello
      spec:
        containers:
        - name: hello
          image: hello_hello
          imagePullPolicy: Never
          ports:
          - containerPort: 4001
            protocol: TCP
  ---
  apiVersion: v1
  kind: Service
  metadata:
    name: hello
  spec:
    selector:
      app: hello
    ports:
    - port: 4001
      nodePort: 30036
      protocol: TCP
    type: NodePort
  </code></pre>
  
  <p>And a simple HTTP-server written in Golang</p>
  
  <pre><code>package main
  import (
      http "net/http"
  
      "github.com/gin-gonic/gin"
  )
  
  func main() {
      r := gin.Default()
      r.GET("/ping", func(c *gin.Context) {
          c.JSON(200, gin.H{
              "message": "pong",
          })
      })
  
      server := &amp;http.Server{
          Addr:    ":4001",
          Handler: r,
      }
  
      server.ListenAndServe()
  }
  </code></pre>
  
  <p>When I make several requests to <em>IP:30036/ping</em> and then open pod's logs, I can see that only 1 of 3 pods handles all requests. How to make other pods response on requests? </p>