-
Notifications
You must be signed in to change notification settings - Fork 40.1k
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
Move ipvs module loading logic in local-cluster-up.sh #59936
Move ipvs module loading logic in local-cluster-up.sh #59936
Conversation
/cc @dims |
/assign @m1093782566 |
hack/local-up-cluster.sh
Outdated
then | ||
FEATURE_GATES="$FEATURE_GATES,SupportIPVSProxyMode=true" | ||
else | ||
KUBE_PROXY_MODE=iptables |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be helpful to log a message that we are falling back to iptables mode
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small request
65fea60
to
512c136
Compare
hack/local-up-cluster.sh
Outdated
FEATURE_GATES="$FEATURE_GATES,SupportIPVSProxyMode=true" | ||
# If required kernel modules are not available, fall back to iptables. | ||
sudo modprobe -a ip_vs ip_vs_rr ip_vs_wrr ip_vs_sh nf_conntrack_ipv4 | ||
if [[ $? -eq 0 ]]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
if [[ $? -eq 0 ]]; then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
hack/local-up-cluster.sh
Outdated
sudo modprobe -a ip_vs ip_vs_rr ip_vs_wrr ip_vs_sh nf_conntrack_ipv4 | ||
if [[ $? -eq 0 ]]; | ||
then | ||
FEATURE_GATES="$FEATURE_GATES,SupportIPVSProxyMode=true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
FEATURE_GATES="${FEATURE_GATES},SupportIPVSProxyMode=true"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
512c136
to
ab53cb2
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cblecker, rramkumar1 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Automatic merge from submit-queue (batch tested with PRs 59683, 59964, 59841, 59936, 59686). If you want to cherry-pick this change to another branch, please follow the instructions here. |
What this PR does / why we need it:
This PR makes the module loading logic for ipvs kube-proxy a little more robust. Previously we were attempting to load the modules and not checking that it succeeded. Now we make sure the loading was successful before proceeding with using ipvs as the proxier.
/assign @cblecker
Release Note