<p>i have pod on which an app is running and exposing the port <strong>6006</strong></p>
<p>this pod is exposed by a service where i have :</p>
<pre><code>- nodePort: 30017
    port: 6006
    protocol: TCP
    targetPort: 6006
</code></pre>
<p>The problem is that the url i use to access this app is based on a LB that only exposes <strong>externalIP:443</strong> and i can't add a new policy for 6006.</p>
<p>My question is how can i do on my pod and/or service to match the pod's 6006 to the LB's 443 ?</p>

mohamed wael thabet
<p>change your service type to loadblancer</p>
<pre><code> spec:
  type: loadblancer
  ports:
    - port: 6006
      targetPort: 6006
      protocol: TCP
      name: http
</code></pre>
<p>you can also add the option internal if you want to expose your service internally</p>
<pre><code>annotations:
    cloud.google.com/load-balancer-type: Internal
</code></pre>
