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
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.
1 is the port of the service itself and the other is that actual port that the container's application is listening on
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.