Skip to content
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

Workaround for codespaces #419

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Workaround for codespaces #419

merged 1 commit into from
Oct 21, 2024

Conversation

nabuskey
Copy link
Collaborator

Docker was updated in Codespaces and it caused an issue with Kind. This is a workaround for it. It just pre-creates the kind network.

For a more permanent fix, we need to update Kind once a new version with the fix is released.

#412
fixes: #386

Signed-off-by: Manabu McCloskey <[email protected]>
@@ -20,3 +20,4 @@ mkdir $HOME/.kube
echo "source <(kubectl completion bash)" >> $HOME/.bashrc
echo "alias k=kubectl" >> $HOME/.bashrc
echo "complete -F __start_kubectl k" >> $HOME/.bashrc
docker network create -d=bridge -o com.docker.network.bridge.enable_ip_masquerade=true -o com.docker.network.driver.mtu=1500 --subnet fc00:f853:ccd:e793::/64 kind
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow what the hell, I'm surprised by this.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this subnet something known ahead of time?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it's known in codespaces. Definitely not a permanent fix. We need to upgrade kind once a new one is released.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was curious if it could be looked up by a script function?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not too sure tbh. If you have another approach I'm definitely interested.

@csantanapr csantanapr merged commit 1c68879 into cnoe-io:main Oct 21, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Codespaces - failed to ensure docker network
3 participants