mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
remove incomplete check of ipvs modules in hack/local-up-cluster.sh
This commit is contained in:
parent
0c1f933693
commit
2e79fd6954
@ -126,16 +126,6 @@ if [ "${CLOUD_PROVIDER}" == "openstack" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# load required kernel modules if proxy mode is set to "ipvs".
|
|
||||||
if [ "${KUBE_PROXY_MODE}" == "ipvs" ]; then
|
|
||||||
# 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 [[ $? -ne 0 ]]; then
|
|
||||||
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
|
# set feature gates if enable Pod priority and preemption
|
||||||
if [ "${ENABLE_POD_PRIORITY_PREEMPTION}" == true ]; then
|
if [ "${ENABLE_POD_PRIORITY_PREEMPTION}" == true ]; then
|
||||||
FEATURE_GATES="$FEATURE_GATES,PodPriority=true"
|
FEATURE_GATES="$FEATURE_GATES,PodPriority=true"
|
||||||
|
Loading…
Reference in New Issue
Block a user