cancel
Showing results for 
Search instead for 
Did you mean: 
garden
Cadet
Cadet
  • 1,551 Views

I have a question about the port on the Helm chart.(do288 ch09s02)

Hi! I have a question about the port on the Helm chart.
What is difference between port value in [values.yaml] and containerPort value in [templates/deployment.yaml]?


Should I set the same value for port and containerPort?

ex ) [values.yaml]
  service:
   type: ClusterIP
   port: 3000
ex ) [templates/deployment.yaml] 
  ports:
  - name: http
    containerPort: 3000

Labels (1)
0 Kudos
2 Replies
anvyas
Cadet
Cadet
  • 1,454 Views

Yes, I think it should be the same value. Cluster IP service type is usually an internal load balancer if you have multiple pods running across nodes.

0 Kudos
rocko
Cadet
Cadet
  • 1,371 Views

1 is the port of the service itself and the other is that actual port that the container's application is listening on 

0 Kudos
Join the discussion
You must log in to join this conversation.