<p>I'm running set of micro-services inside of a local minikube cluster (using helm charts) which communicate each other. Each and every service's host and port passed via <code>value-dev.yaml</code> to the other services and communication works fine. Now I need go bit of further, and alter connection calling from <code>http://helm-chart-name:PORT/</code> to <code>http://helm-chart-name/</code> or <code>http://service-pod-name/</code>. I tried to do this but it didn't work. Is there way to achieve this?</p>

Govinda Malavipathirana
<p>In your Services (specifically) set the <code>port:</code> number to 80.  This is the default TCP port number for HTTP, so it's the port number that will get used if there's not a <code>...:12345</code> port number in a URL.  The <code>targetPort:</code> needs to match whatever port the pod is listening on; it doesn't need to match the <code>port:</code>.</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: v1
kind: Service
metadata:
  name: {{ include &quot;chart.fullname&quot; . }}
spec:
  selector:
    {{- include &quot;chart.selectorLabels&quot; . | nindent 4 }}
  ports:
    - name: http
      protocol: TCP
      port: 80          # default HTTP port
      targetPort: 3000  # port number the matching Pod uses
</code></pre>
<p>Now other services can call <code>http://helm-chart-name/</code> without explicitly giving a port number.</p>
<p>(You pretty much always need to use a Service to accept connections into a pod; you don't generally communicate directly to a pod, and aside from some specialized circumstances it's tricky to do so.)</p>
