Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove hardcoded port #30

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

dsloanather
Copy link

NodePort is able to dynamically grab a port to bind to

NodePort is able to dynamically grab a port to bind to
@dsloanather dsloanather requested a review from a team as a code owner March 31, 2023 18:33
Copy link
Member

@DrPsychick DrPsychick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to use nodePort without specifying a port, then rather only set the port when type is NodePort AND nodeport.port is defined.

@@ -18,9 +18,6 @@ spec:
port: {{ .Values.service.servicePort }}
targetPort: 3000
protocol: TCP
{{- if eq .Values.service.type "NodePort" }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is backwards breaking and the NodePort should stay configurable.
The port is not hardcoded but set by default, IF service type is "NodePort" (which by default is "ClusterIP").

@@ -35,9 +35,6 @@ service:
## from within the cluster. To expose externally, consider a "NodePort" or "LoadBalancer" service.
type: ClusterIP
## Further configuration if service is of type "NodePort"
nodePort:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This must stay, but may be commented out as it is only used when type: NodePort

@DrPsychick
Copy link
Member

@dsloanather do you still want this contribution to be considered? Do you want to make the suggested changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants