Skip to content

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

Open
@XinyuHu123456

Description

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())
}

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions