-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[firewalld] kind doesn't work on Fedora 32 #1547
Comments
/var/lib/kubelet/config.yaml does not exist initially, this is normal. I wish kubeadm would make this clearer :/ during kubeadm's bootstrapping the kubelet config does not exist initially and kubelet is crashlooping until the config is populated. |
can you share the full |
this config works on ubuntu 20.04 and kind v0.8.1 w/ ipv6 disabled. will have to reboot to sanity check the more common ipv6 enabled. |
So it failed again with the following config...
So I tried a simpler config...
So it's network related. I'll try 0.8.1 to see. I'll also upload the logs |
v0.8.1 gave me the same result. I believe it's network related |
[we're debugging in slack, tentatively an issue with firewalld] xref: |
for anyone following along, discussion in this thread: https://kubernetes.slack.com/archives/CEKK1KTN2/p1588378366006900 |
looking around it sounds like firewalld and docker do not work well together firewalld/firewalld#461 |
apparently disabling firewalld worked |
i'm not sure what we can do here, based on the logs in slack it seems that firewalld breaks containers being able to reach to each other over a docker network which is standard docker functionality (e.g. compose uses this) |
I think short of fully disabling firewalld, you can do:
|
(btw this was from docker/for-linux#955 (comment)) Digging more, this seems to get all the Docker-relevant networking working for our CI with Fedora 32 except the KIND bits 😅. I've only gotten KIND working by disabling firewalld and enabling iptables:
|
Update. So on F32, I got it working with Firewalld by changing the
After I did that, my kind deployments started working "as normal". |
Seems like somewhere between the upstream projects there's a bug to be fixed here, but this also seems worthy of at least a known-issues entry in our docs with workaround(s). |
Worked for CentOS 8 too |
I'm not a fedora or firewalld user, but if someone wants to make an opinion about which fix to take, we should document it on this page https://kind.sigs.k8s.io/docs/user/known-issues/ |
possibly let's document #1547 (comment) |
workaround and known issue are now documented |
Thanks for this note @christianh814 |
What happened:
After upgrading to Fedora 32, I can no longer create a kind cluster.
What you expected to happen:
My kind cluster to get created
How to reproduce it (as minimally and precisely as possible):
Were
config.yaml
is...Anything else we need to know?:
Output/trace of running with
-v 10
https://gist.github.com/christianh814/abbf1964b9224c8940864d02b9236128I figured maybe something was stale and ran
docker network rm kind
and re-ran the command. This time I looked at the logs on my laptop and saw...Okay...so I
docker exec
into one of the workers and saw...And indeed it's not there
Strange that
kind create cluster
DOES work fine.Environment:
kind version
):kubectl version
):docker info
):/etc/os-release
):The text was updated successfully, but these errors were encountered: