Configuring robust networking for the cluster.

To easily manage your application it’s better to use combination of WaveNet and MetalLB. First one is network plugin, second provides load balancer implementation for the bear-metal k8s clusters.

To install WaveNet simply run:

kubectl apply -f "$(kubectl version | base64 | tr -d '\n')"

For MetalLB you need to create ConfigMap first:

apiVersion: v1
kind: ConfigMap
  namespace: metallb-system
  name: config
  config: |
    - name: default
      protocol: layer2

Where is a range of IP addresses you’re allocating for a cluster.

Install MetalLB:

kubectl apply -f

Modify /etc/rc.local and add the following before exit:

ifconfig wlan0 promisc

This will enable promiscuous mode for wlan0 interface upon boot.

WARN If you're using different connection, make sure that you put correct interface name.