title: Kubernetes service is not getting external IP
body: <p>I running Kubernetes cluster on premises, initialized using KubeAdm. I configured <a href="https://kubernetes.io/docs/concepts/cluster-administration/networking/#flannel" rel="noreferrer">flannel</a> networking plugin.</p>
  
  <p>When I exposing service as a NodePort, I'm not able to receive external IP. What do I miss?</p>
  
  <p><a href="https://i.stack.imgur.com/TRjmN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/TRjmN.png" alt="enter image description here"></a></p>
  
  <p>My deployment yaml looks as the following:</p>
  
  <pre><code>apiVersion: v1
  kind: Service
  metadata:
    name: testapp
    labels:
      run: testapp
  spec:
    type: NodePort
    ports:
    - port: 8080
      targetPort: 80
      protocol: TCP
      name: http
    - port: 443
      protocol: TCP
      name: https
    selector:
      run: testapp
  ---------
  apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: testapp
  spec:
    selector:
      matchLabels:
        run: testapp
    replicas: 2
    template:
      metadata:
        name: testapp
        labels:
          run: testapp
      spec:
        containers:
          - image: [omitted]
            name: testapp
            ports:
            - containerPort: 80
               livenessProbe:
                 httpGet:
                 path: /api/health
                 port: 80
  </code></pre>
  
  <p><strong>Environment details:</strong></p>
  
  <p>Kubernetes version:</p>
  
  <pre><code>Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.3", GitCommit:"d2835416544f298c919e2ead3be3d0864b52323b", GitTreeState:"clean", BuildDate:"2018-02-07T12:22:21Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
  Server Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.3", GitCommit:"d2835416544f298c919e2ead3be3d0864b52323b", GitTreeState:"clean", BuildDate:"2018-02-07T11:55:20Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
  </code></pre>
  
  <p>Running Ubuntu Server 16.04 on vSphere VM (on-prem).</p>