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

Duplicate port definition in nlb-with-tls-termination/deploy.yaml ? #12163

Closed
Mahoney opened this issue Oct 11, 2024 · 10 comments
Closed

Duplicate port definition in nlb-with-tls-termination/deploy.yaml ? #12163

Mahoney opened this issue Oct 11, 2024 · 10 comments
Labels
kind/support Categorizes issue or PR as a support question. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@Mahoney
Copy link

Mahoney commented Oct 11, 2024

My k8s isn't very strong, is it a bug that there are two port 80s here? We get a duplicate port definition warning applying this manifest.

- containerPort: 80
name: http
protocol: TCP
- containerPort: 80
name: https
protocol: TCP

@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-kind Indicates a PR lacks a `kind/foo` label and requires one. needs-priority labels Oct 11, 2024
@longwuyuan
Copy link
Contributor

Where are you terminating TLS ?

@longwuyuan
Copy link
Contributor

And no,its not a bug.

There will be more to understand depending on where you are terminating TLS

@longwuyuan
Copy link
Contributor

/kind support

@k8s-ci-robot k8s-ci-robot added kind/support Categorizes issue or PR as a support question. and removed needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels Oct 12, 2024
@Mahoney
Copy link
Author

Mahoney commented Oct 12, 2024

Where are you terminating TLS ?

At the NLB, hence using nlb-with-tls-termination/deploy.yaml.

@Mahoney
Copy link
Author

Mahoney commented Oct 12, 2024

And no,its not a bug.

There will be more to understand depending on where you are terminating TLS

OK, I was surprised when the output of applying that manifest via kubectl contained a warning about it.

I don't understand that it means for the specs.containers.ports array to contain the same containerPort twice with different names.

@longwuyuan
Copy link
Contributor

longwuyuan commented Oct 12, 2024 via email

@Gacko
Copy link
Member

Gacko commented Oct 12, 2024

Basically this should not be a bug, if you're working with named ports everywhere and therefore want to abstract the real port number from the rest of your implementation.

I assume that Kubernetes at some point started complaining about this even though there might be real use cases for it. So in the end it might be worth taking a look into the chart implementation and find a way to only have the port listed once in such cases, especially because it's port 80 being named https. 😅

@longwuyuan
Copy link
Contributor

/close

Closing this issue as there is no action item on the project. If a action is determined, then please reopen the ticket and link the PR

@k8s-ci-robot
Copy link
Contributor

@longwuyuan: Closing this issue.

In response to this:

/close

Closing this issue as there is no action item on the project. If a action is determined, then please reopen the ticket and link the PR

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support Categorizes issue or PR as a support question. needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
Development

No branches or pull requests

4 participants