-
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
KinD no longer working in GitHub Codespaces #3748
Comments
Docker enabled ipv6 by default but it doesn't work in codespaces.
We can probably detect and handle this docker error, in the meantime please explicitly disable ipv6 in the daemon if ipv6 kernel modules are not available on the host, or roll back to an earlier version of docker. |
The problem is ipv6 now being enabled in docker (so we don't get the expected error that ipv6 is disabled) while not actually being functional. It's not a codespaces specific issue, though IMHO codespaces should really either provide the relevant kernel modules or configure docker to disable ipv6. |
Can you try from the latest sources? #3749 there are instructions in the docs for building from source: https://kind.sigs.k8s.io/docs/user/quick-start/#installing-from-source (note to use HEAD commit use |
@avillela were you able to test the fix? |
Hi @BenTheElder - let me give it a shot... |
@BenTheElder just tested it and got the following error when trying to create the KinD cluster (looks like same error as original):
KinD version: |
For funsies, based on your notes above, I did a little experiment and manually created the docker network without the |
If your copy-paste exactly matches the terminal, for some reason there is an extra space in the output from docker 😕 Versus:
I think that's the issue, the error doesn't match the check because the additional space isn't present in the string in kind ... |
That worked! |
Thanks for confirming! I think another workaround would be disable ipv6 in docker daemon config, but we should handle this gracefully in the next release. |
What happened:
Up until sometime this summer (~July 2024) I used to be able to run KinD in GitHub codespaces. Recently, however, I am no longer able to do so.
What you expected to happen:
After installing KinD in my Codespace, I expect it to spin up a Kubernetes cluster; however, it fails to do so.
How to reproduce it (as minimally and precisely as possible):
After creating my codepsace, I run the following:
After running
kind create cluster
, I get the following error:I used to not get this error before and was able to create a cluster successfully.
Anything else we need to know?:
Environment:
kind version
): v0.24.0docker info
,podman info
ornerdctl info
):/etc/os-release
):Ubuntu 22.04.5 LTS
kubectl version
): Not sure, because it doesn't installI am aware of #2412; however, it does not seem to apply to me, as far as I can tell, unless I'm missing something??
The text was updated successfully, but these errors were encountered: