garden

Cadet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2022
08:07 AM
- 1,908 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
2 Replies
anvyas

Cadet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2022
12:36 PM
- 1,811 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.
rocko

Cadet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2023
10:48 AM
- 1,728 Views
1 is the port of the service itself and the other is that actual port that the container's application is listening on
Join the discussion
You must log in to join this conversation.