This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable ip forwarding in the host | |
sudo bash -c 'echo 1 > /proc/sys/net/ipv4/ip_forward' | |
# Create WAN 10.0.0.0/24 and LAN 192.168.66.0/24 networks | |
docker network create --driver bridge --subnet 10.0.0.0/24 --attachable wan | |
docker network create --driver bridge --subnet 192.168.66.0/24 --attachable --gateway 192.168.66.254 lan | |
# Create hosts and router | |
## Create the 'wan-host' and connect to the WAN network | |
docker run -itd --rm --ip 10.0.0.10 --network wan --name wan-host ubuntu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Code below is used to deploy a full-fledged kubernetes cluster with N nodes. | |
Tested in March of 2021. |