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

The number of nodeports for the service is insufficient #142

Open
lizhipeng629 opened this issue Apr 26, 2024 · 0 comments
Open

The number of nodeports for the service is insufficient #142

lizhipeng629 opened this issue Apr 26, 2024 · 0 comments

Comments

@lizhipeng629
Copy link
Contributor

When using a load balancer (lb) to expose services, the generated service needs to allocate a NodePort, and the default range for NodePort is 2000+. When there are too many container service ports, it can lead to a shortage of NodePort ports.

By setting the 'allocateLoadBalancerNodePorts' parameter in the service, you can control the generated service to not expose NodePort. However, this is only applicable in scenarios where LB traffic passes directly to the pod.

https://kubernetes.io/docs/concepts/services-networking/service/

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

No branches or pull requests

1 participant