-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Kubenet host-port support through iptables #25604
Conversation
execer: utilexec.New(), | ||
podCIDRs: make(map[kubecontainer.ContainerID]string), | ||
hostPortMap: make(map[hostport]closeable), | ||
MTU: 1460, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: don't hardcode this
@thockin Ready for round 2 |
kubenetPostroutingChain utiliptables.Chain = "KUBENET-POSTROUTING" | ||
// the mark-for-masquerade chain | ||
kubenetMarkChain utiliptables.Chain = "KUBENET-MARK" | ||
// TODO: do not hard code mark |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How do we resolve this TODO? do we need a flag to kubelet? Why is this a different bit than the kube-proxy? What is the long-term plan to manage these
ce2c777
to
86ab203
Compare
@thockin Ready for round 3 |
d1617d9
to
3281811
Compare
|
||
// the hostport chain | ||
kubenetHostportChain utiliptables.Chain = "KUBENET-HOSTPORT" | ||
// prefix for kubenet hostort chains |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: hostort
84a9b40
to
3846ac8
Compare
@@ -48,6 +53,11 @@ const ( | |||
DefaultCNIDir = "/opt/cni/bin" | |||
|
|||
sysctlBridgeCallIptables = "net/bridge/bridge-nf-call-iptables" | |||
|
|||
// the hostport chain | |||
kubenetHostportChain utiliptables.Chain = "KUBENET-HOSTPORTS" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: kubenetHostportsChain
just one name nit, then LGTM. fix and self-apply. I want to point out that this PR will close #15 - the OLDEST open bug on the project. |
re-titled for release note. |
Could we eventually move most of this to a CNI plugin instead? |
That is the plan. |
LGTM too, for what it's worth... |
Needs rebase :( |
Still failing |
Because submit queue is blocked, I'm going to kick off re-tests of the top 5 PRs in the queue, then merge them if they pass. |
@k8s-bot test this issue: #IGNORE Looks like a random failure to me
|
GCE e2e build/test passed for commit 6a3ad1d. |
@thockin @dcbw
closes #15