Skip to content

Workaround for codespaces#419

Merged
csantanapr merged 1 commit intocnoe-io:mainfrom
nabuskey:main
Oct 21, 2024
Merged

Workaround for codespaces#419
csantanapr merged 1 commit intocnoe-io:mainfrom
nabuskey:main

Conversation

@nabuskey
Copy link
Copy Markdown
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

@nabuskey nabuskey requested a review from csantanapr October 17, 2024 23:08
Signed-off-by: Manabu McCloskey <manabu.mccloskey@gmail.com>
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
Copy Markdown
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.

Copy link
Copy Markdown

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
Copy Markdown
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.

Copy link
Copy Markdown

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
Copy Markdown
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
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