-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
use iptables legacy mode when using buster #7381
Conversation
This needs cherrypick to 1.14 and 1.13. |
/test pull-kops-e2e-kubernetes-aws |
@justinsb could you check this PR before doing next 1.14 beta release. This is needed there |
/assign @mikesplain could you Mike check this? |
As I commented on the issue, this is indeed problematic. I do wonder whether nodeup runs in time. It's presumably possible for something to beat nodeup and run some iptables commands (for example, if docker was preinstalled), which based on reading the k8s issue would result in problems also. Going to seek clarification on the k8s issue (kubernetes/kubernetes#71305)... |
I actually have been using buster image by adding these commands to IG additionalUserData. I think additionalUserData is executed earlier than this firewall.go?
|
@justinsb any progress in this? |
After reading carefully what the problem is, I will try to explain to newcomers what the problem is. iptables binary is the center of the problem. iptables binary can either modify the kernel Debian stretch uses iptables v 1.6 which modifies kernel The problem is this : If your host is under debian buster, docker daemon, kubelet, etc (every binary that run on the host) will use the host's iptables, which is 1.8, which modifies kernel TL;DR; using a host OS with iptable version 1.8 coupled with pods using iptable version 1.6 results in buggy kubernetes cluster. Right now, @zetaab solution is what seem to be the correct solution. It is also what is being documented on kubernetes website (see https://github.com/kubernetes/website/pull/16271/files) usage of debian buster. Because there is no easy solution for this, the strategy seems to be asking k8s operators to document how to update the host OS that uses iptable1.8 |
@zetaab |
I think you are right. Kops add things in userdata to download and configure nodeup I think. Using additionalUserData is the way to go in my opinion. Is it the earliest we can do before any iptables command gets fired ? |
I did some testing using the official Debian images from https://wiki.debian.org/Cloud/AmazonEC2Image/Buster. May be a good idea to also make sure that |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: zetaab The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold it might be that this is not needed anymore in kube 1.17 kubernetes/kubernetes#82966 |
@zetaab: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Cilium has no plans for supporting nftables anytime soon. So cilium users will need something like this anyway. Would be nice if this one goes in, but perhaps add an API field controlling if legacy or nft iptables should be used. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
fixes #7379
There are two ways to do this: nodeup OR insert in imagebuilder. However, at least I would like to have support in all buster images - that is why I implemented it to nodeup. Imagebuilder does not support platforms like openstack.
/assign @justinsb
/kind bug