fix kubekey ip_vs modules covered in kube_proxy-ipvs.conf (#2809)

Co-authored-by: xiongww <xiongww@chinatelecom.cn>
Signed-off-by: redscholar <blacktiledhouse@gmail.com>
This commit is contained in:
wenwenxiong 2025-10-21 09:49:23 +08:00 committed by redscholar
parent 5cf79a4adb
commit 97bba44fe6
No known key found for this signature in database
GPG Key ID: 5A4D7C7DB5D38D49
3 changed files with 5 additions and 5 deletions

View File

@ -198,10 +198,10 @@ EOF
modprobe nf_conntrack_ipv4 1>/dev/null 2>/dev/null
if [ $? -eq 0 ]; then
echo 'nf_conntrack_ipv4' > /etc/modules-load.d/kube_proxy-ipvs.conf
echo 'nf_conntrack_ipv4' >> /etc/modules-load.d/kube_proxy-ipvs.conf
else
modprobe nf_conntrack
echo 'nf_conntrack' > /etc/modules-load.d/kube_proxy-ipvs.conf
echo 'nf_conntrack' >> /etc/modules-load.d/kube_proxy-ipvs.conf
fi
sysctl -p

View File

@ -194,10 +194,10 @@ EOF
modprobe nf_conntrack_ipv4 1>/dev/null 2>/dev/null
if [ $? -eq 0 ]; then
echo 'nf_conntrack_ipv4' > /etc/modules-load.d/kube_proxy-ipvs.conf
echo 'nf_conntrack_ipv4' >> /etc/modules-load.d/kube_proxy-ipvs.conf
else
modprobe nf_conntrack
echo 'nf_conntrack' > /etc/modules-load.d/kube_proxy-ipvs.conf
echo 'nf_conntrack' >> /etc/modules-load.d/kube_proxy-ipvs.conf
fi
sysctl -p

View File

@ -474,7 +474,7 @@ func newLocalRepository(reference, localDir string) (*remote.Repository, error)
var responseNotFound = &http.Response{Proto: "Local", StatusCode: http.StatusNotFound}
var responseNotAllowed = &http.Response{Proto: "Local", StatusCode: http.StatusMethodNotAllowed}
var responseServerError = &http.Response{Proto: "Local", StatusCode: http.StatusInternalServerError}
var responseCreated = &http.Response{Proto: "Local", StatusCode: http.StatusAccepted}
var responseCreated = &http.Response{Proto: "Local", StatusCode: http.StatusCreated}
var responseOK = &http.Response{Proto: "Local", StatusCode: http.StatusOK}
// const domain = "internal"