title: I can't curl nginx which I deployed on k8s cluster
body: <p>my deployment yaml:</p>
  <pre><code>apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: nginx-deployment
    labels: 
      app: nginx
  spec:
    selector:
      matchLabels:
        app: nginx
    replicas: 3
    template:
      metadata:
        labels:
          app: nginx
      spec:
        containers:
        - name: nginx
          image: nginx:1.7.9
          ports:
          - containerPort: 80
  </code></pre>
  <p>my service yaml:</p>
  <pre><code>apiVersion: v1
  kind: Service
  metadata:
    name: nginx-service
  spec:
    selector:
      app: nginx
    ports:
    - protocol: TCP
      port: 80
      targetPort: 80
  </code></pre>
  <p><a href="https://i.stack.imgur.com/Hp4l8.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p><a href="https://i.stack.imgur.com/xXIUM.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>and then I <code>curl 10.104.239.140</code>, but get an error <code>curl: (7) Failed connect to 10.104.239.140:80; Connection timed out</code></p>
  <p>Who can tell me what's wrong?</p>