@@ -8,6 +8,16 @@ and how to deploy services on it.
...
@@ -8,6 +8,16 @@ and how to deploy services on it.
### VM
### VM
Create/have access to a VM and install an OS to it (using Debian 11 in this guide)
Create/have access to a VM and install an OS to it (using Debian 11 in this guide)
#### Unique VM's
Make sure each VM has it's own MAC address.
I used these with Virtual Box (and an example reserved ip)
08:00:27:AA:AA:AA | 192.168.1.100
08:00:27:BB:BB:BB | 192.168.1.101
08:00:27:CC:CC:CC | 192.168.1.102
08:00:27:DD:DD:DD | 192.168.1.103
### Disable Swap
### Disable Swap
Disable swap (if present):
Disable swap (if present):
```bash
```bash
...
@@ -22,3 +32,98 @@ nano /etc/fstab
...
@@ -22,3 +32,98 @@ nano /etc/fstab
# The line looks like:
# The line looks like:
#UUID=<uuid> none swap sw 0 0
#UUID=<uuid> none swap sw 0 0
```
```
### Prerequisites
For Debian 11:
```bash
apt-get update
apt-get install\
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
mkdir-p /etc/apt/keyrings # new in Debian 12/Ubuntu 22.04
```
### TODO:
#### Forwarding IPv4 and letting iptables see bridged traffic
Execute the below mentioned instructions:
```bash
cat<<EOF | sudo tee /etc/modules-load.d/k8s.conf
overlay
br_netfilter
EOF
sudo modprobe overlay
sudo modprobe br_netfilter
# sysctl params required by setup, params persist across reboots
cat<<EOF | sudo tee /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-iptables = 1
net.bridge.bridge-nf-call-ip6tables = 1
net.ipv4.ip_forward = 1
EOF
# Apply sysctl params without reboot
sudo sysctl --system
```
Verify that the br_netfilter, overlay modules are loaded by running below instructions:
```bash
lsmod | grep br_netfilter
lsmod | grep overlay
```
Verify that the net.bridge.bridge-nf-call-iptables, net.bridge.bridge-nf-call-ip6tables, net.ipv4.ip_forward system variables are set to 1 in your sysctl config by running below instruction: