<p>I don't think I miss anything, but my angular app doesn't seem to be able to contact the service I exposed trough Kubernetes.</p>
<p>Whenever I try to call the exposed nodeport on my localhost, I get a connection refused.</p>
<p>The deployment file</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: society-api-gateway-deployment
spec:
  replicas: 1
  selector:
    matchLabels:
      app: society-api-gateway-deployment
  template:
    metadata:
      labels:
        app: society-api-gateway-deployment
    spec:
      containers:
      - name: society-api-gateway-deployment
        image: tbusschaert/society-api-gateway:latest
        ports:
        - containerPort: 80
</code></pre>
<p>The service file</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
  name: society-api-gateway-service
spec:
  type: NodePort
  selector:
    app: society-api-gateway-deployment
  ports:
  - name: http
    port: 80
    targetPort: 80
    nodePort: 30001
</code></pre>
<p>I double checked, the call doesn't reach my pod, and this is the error I get when going the call:</p>
<p><a href="https://i.stack.imgur.com/nux8j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nux8j.png" alt="enter image description here" /></a></p>
<p>I'm using minikube and kubectl on my local machine.</p>
<p>I'm out of options, tried everything I though it could be, thanks in advance.</p>
<p>EDIT 1:</p>
<p>So after following the suggestions, i used the node IP to call the service:</p>
<p><a href="https://i.stack.imgur.com/nkzzD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nkzzD.png" alt="enter image description here" /></a></p>
<p>I changed the IP in my angular project, now I get a connection timeout:</p>
<p><a href="https://i.stack.imgur.com/iItSE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iItSE.png" alt="enter image description here" /></a></p>
<p>As for the port forward, I get a permission error:</p>
<p><a href="https://i.stack.imgur.com/J18qq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J18qq.png" alt="enter image description here" /></a></p>

TanguyB
<p>So, as I thought, the problem was related to minikube not opening up to my localhost.</p>
<p>First of all I didn't need a NodePort, but the LoadBalancer also fit my need, so my API gateway became a LoadBalancer.</p>
<p>Second, when using minikube, to achieve what I wanted ( running kubernetes on my local machine and my angular client also being on my local machine ), you have to create a minikube tunnel, exactly how they explain it here: <a href="https://minikube.sigs.k8s.io/docs/handbook/accessing/#run-tunnel-in-a-separate-terminal" rel="nofollow noreferrer">https://minikube.sigs.k8s.io/docs/handbook/accessing/#run-tunnel-in-a-separate-terminal</a></p>
