Problem
The DKP bootstrap cluster deploys a Docker container which creates a network utilizing the 172.18.0.0/16 as the network and 172.18.0.1 as the default gateway. If the set of IP addresses conflicts with the existing network, it is possible to choose another set of IPs as shown below.
Solution
If there is an existing Docker network named kind, you can proceed to delete it first before continuing with the steps below
1..) Create a kind network with custom subnet and gateway, for example:
export SUBNET=173.15.0.0/16
export GATEWAY=173.15.0.1
docker network create \
--driver bridge \
--subnet ${SUBNET} \
--gateway ${GATEWAY} \
--opt com.docker.network.bridge.enable_ip_masquerade=true \
--opt com.docker.network.driver.mtu=1500 \
--scope=local \
--ipam-driver=default \
kind
2.) Create the bootstrap cluster:
dkp create bootstrap
3.) Verify if the IP address assigned to the bootstrap cluster:
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6941c88aa773 mesosphere/konvoy-bootstrap:v2.4.0 "/usr/local/bin/entr…" 6 minutes ago Up 6 minutes 127.0.0.1:65043->6443/tcp konvoy-capi-bootstrapper-control-plane
docker inspect 6941c88aa773 | grep -i ipaddress
"SecondaryIPAddresses": null,
"IPAddress": "",
"IPAddress": "173.15.0.2",