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
bugfix: nodeport quota check failure result into failing to create a clusterip service #97451
Conversation
/sig network |
c265664
to
ca2edd3
Compare
/retest |
/assign @yliaog |
please see discussions in the issue #73628 |
thanks. @yliaog However, #97319 focus on LB and NodePorts, besides, #97437 focus on I think they are different indeed. |
However, Services LoadBalancer quota depends on NodePort quota (at least meanwhile Lars Spec.AllocateLoadBalancerNodePorts feature gate is disabled) |
@aojea I edited the table. @uablrek I didn't realize that LB would include NodePort at the time. There is some overlap here. We can fix it in one pr or separate PRs. Either is ok. |
…p zero usage in delta evaluator Signed-off-by: pacoxu <paco.xu@daocloud.io> When Spec.AllocateLoadBalancerNodePorts is "false" NodePort shall not be included when computing quota for type:LoadBalancer. Co-authored-by: uablrek
8f563c3
to
15867d9
Compare
/test pull-kubernetes-e2e-kind-ipv6 |
/hold cancel |
need I cherry pick it to 1.20 or other old version? @liggitt |
I would recommend picking the zero portion of it to 1.17-1.20 |
…e during creating clusterip Signed-off-by: pacoxu <paco.xu@daocloud.io>
…e during creating clusterip Signed-off-by: pacoxu <paco.xu@daocloud.io>
…e during creating clusterip Signed-off-by: pacoxu <paco.xu@daocloud.io>
…e during creating clusterip Signed-off-by: pacoxu <paco.xu@daocloud.io>
…-upstream-release-1.19 cherry-pick part of #97451: fix counting error in service/nodeport/loadbalancer quota check
…-upstream-release-1.18 cherry-pick part of #97451: fix counting error in service/nodeport/loadbalancer quota check
…-upstream-release-1.17 cherry-pick part of #97451: fix nodeport quota check failure during c…
cherry-pick part of #97451: fix counting error in service/nodeport/loadbalancer quota check
What type of PR is this?
/kind bug
What this PR does / why we need it:
When quota is like above and there are already two nodeports service created before the quota creation.
This PR tries to fix this. As the created service is clusterip, it can be created as no quota is set for services, only for nodeport.
Which issue(s) this PR fixes:
Fixes #97437 and #73628
Special notes for your reviewer:
Cherrypicks from #97319 to fix NodePort and LB problem as well. Thanks @uablrek for that commit.
To summarize the expectations:
live = current
NP = nodeport
LB = load balancer
Edited after #97451 (comment) comments.
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: