<p>I started implementing the Kuberenetes for my simple app. I am facing issue when i use <code>NodePort</code>. IF I use <code>LoadBalancer</code> I can open my url. If I use <code>NodePort</code> it will take long time for trying to load and getting error <code>connection refused</code>. Below is my simple yaml file.</p>
<pre><code>&gt; POD yaml
apiVersion: v1
kind: Pod
metadata:
  name: pod-webapp
  labels:
    app: webapp
spec:
  containers:
  - name:  app
    image: mydockerimage_xxx
</code></pre>
<pre><code>&gt; service.yaml

kind: Service
apiVersion: v1
metadata:
  # Unique key of the Service instance
  name: service-webapp
spec:
  ports:
    # Accept traffic sent to port 80
    - name: http
      port: 80
      nodePort: 30080
  selector:
    app: webapp
  type: NodePort
</code></pre>

nagaraj
<p>what I found something in GitHub : <a href="https://github.com/kubernetes/minikube/issues/11193" rel="nofollow noreferrer">Kubernetes NodePort</a> which solved my issue partially.</p>
