Skip to content
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

kube-proxy的轮询算法实现有误 #59

Open
XinyuHu123456 opened this issue Aug 18, 2024 · 0 comments
Open

kube-proxy的轮询算法实现有误 #59

XinyuHu123456 opened this issue Aug 18, 2024 · 0 comments

Comments

@XinyuHu123456
Copy link

if err := im.ipt.Insert("nat", kubesvc, 1, "-j", kubesep, "-m", "statistic",
//"-m", "statistic", "--mode", "nth", "--every", strconv.Itoa(podNum-i)); err != nil {
// 上面的写法存在问题
"--mode", "nth", "--every", strconv.Itoa(podNum), "--packet", strconv.Itoa(i+1)); err != nil {
k8log.ErrorLog("KUBEPROXY", "Failed to create kubesvc chain: "+err.Error())
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant