Skip to content

Instantly share code, notes, and snippets.

@ganeshmaharaj
Created October 26, 2021 16:58
Show Gist options
  • Save ganeshmaharaj/15304dd0e08be43b83687a184afdbfe1 to your computer and use it in GitHub Desktop.
Save ganeshmaharaj/15304dd0e08be43b83687a184afdbfe1 to your computer and use it in GitHub Desktop.
Kind confgure subnet

Kind network

By default, kind uses docker to create the network subnet that will be used by it's containers. Docker's default network range has 172.{30,31}.XX.XX in the list and if your network overlaps with that, you will run into interesting issues of not being able to reach your intranet systems.

The alternate would be to create a docker network for kind and ask it to use that instead of creating a default subnet from it's pool.

docker network create --subnet 192.168.80.0/16 --gateway 192.168.80.1 -d=bridge -o com.docker.network.bridge.enable_ip_masquerade=true kind
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment