kubernetes service external ip pending

I am trying to deploy nginx on kubernetes, kubernetes version is v1.5.2,
I have deployed nginx with 3 replica, YAML file is below,

apiVersion: extensions/v1beta1
kind: Deployment
  name: deployment-example
  replicas: 3
  revisionHistoryLimit: 2
        app: nginx
      - name: nginx
        image: nginx:1.10
        - containerPort: 80

and now I want to expose its port 80 on port 30062 of node, for that I created a service below,

  • How to setup a docker swarm cluster with AWS ubuntu machine [closed]
  • How to run docker images File in window 8?
  • docker-proxy - Error starting userland proxy while trying to bind on 443
  • Correct way to mount a host directory in a docker container using salt
  • why docker image management create date is stale
  • Docker Swarm Overlay Network Communication
  • kind: Service
    apiVersion: v1
      name: nginx-ils-service
        - name: http
          port: 80
          nodePort: 30062
        app: nginx
      type: LoadBalancer

    this service is working good as it should be, but it is showing as pending not only on kubernetes dashboard also on terminal.
    Terminal outputDash board status

    so please help me to resolve this issue. Thanks …

  • Docker Processes Shown on Host Process List
  • docker ps shows different ports than nmap
  • Committing container changes of files generated in /workspace (even using makefile) doesn't persist into new instances of the image
  • docker-compose volume on node_modules but is empty
  • How can I mount a volume to docker container in OSX?
  • Installing Docker on Windows Server 2016 TP4
  • 2 Solutions collect form web for “kubernetes service external ip pending”

    It looks like you are using a custom Kubernetes Cluster (using minikube, kubeadm or the like). In this case, there is no LoadBalancer integrated (unlike AWS or Google Cloud). With this default setup, you can only use NodePort (more info here: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport) or an Ingress Controller. With the Ingress Controller you can setup a domain name which maps to your pod (more information here: https://kubernetes.io/docs/concepts/services-networking/ingress/#ingress-controllers)

    To access a service on minikube, you need to run the following command:

    minikube service [-n NAMESPACE] [--url] NAME

    More information here : Minikube GitHub

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.