Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
ab53cb24
Commit
ab53cb24
authored
Feb 15, 2018
by
Rohit Ramkumar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move ipvs module loading logic
parent
27daaab2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
local-up-cluster.sh
hack/local-up-cluster.sh
+8
-5
No files found.
hack/local-up-cluster.sh
View file @
ab53cb24
...
...
@@ -122,7 +122,14 @@ fi
# set feature gates if using ipvs mode
if
[
"
${
KUBE_PROXY_MODE
}
"
==
"ipvs"
]
;
then
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
]]
;
then
FEATURE_GATES
=
"
${
FEATURE_GATES
}
,SupportIPVSProxyMode=true"
else
echo
"Required kernel modules for ipvs not found. Falling back to iptables mode."
KUBE_PROXY_MODE
=
iptables
fi
fi
# set feature gates if enable Pod priority and preemption
...
...
@@ -813,10 +820,6 @@ hostnameOverride: ${HOSTNAME_OVERRIDE}
featureGates:
${
FEATURE_GATES
}
mode:
${
KUBE_PROXY_MODE
}
EOF
if
[
"
${
KUBE_PROXY_MODE
}
"
==
"ipvs"
]
;
then
# Load kernel modules required by IPVS proxier
sudo
modprobe
-a
ip_vs ip_vs_rr ip_vs_wrr ip_vs_sh nf_conntrack_ipv4
fi
sudo
"
${
GO_OUT
}
/hyperkube"
proxy
\
--config
=
/tmp/kube-proxy.yaml
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment