Skip to content

Instantly share code, notes, and snippets.

@mstred
Last active October 8, 2023 15:30
Show Gist options
  • Save mstred/7a902e85700d34566b4886827b7f1956 to your computer and use it in GitHub Desktop.
Save mstred/7a902e85700d34566b4886827b7f1956 to your computer and use it in GitHub Desktop.
acg-kthw-net-conf-notes.md

Installing Weave Net on ACG-KTHW Worker Nodes

# I had to go back and remove CNI bridge and loopback config files to enable communication through Weave Net
sudo mv /etc/cni/net.d/10-bridge.conf /etc/cni/net.d/99-loopback.conf ~
# sudo mv ~/10-bridge.conf ~/99-loopback.conf /etc/cni/net.d

# see https://github.com/weaveworks/weave/issues/3960
# cloud.weave.works was shut down so we need to download the manifest file straight from their repository release url
wget https://github.com/weaveworks/weave/releases/download/v2.8.1/weave-daemonset-k8s.yaml

# edit the manifest file and append the following env var lines to the weave container:
vim weave-daemonset-k8s.yaml
<<EOF
                - name: IPALLOC_RANGE
                  value: 10.200.0.0/16
EOF

# use this fix to handle the cgroups error: https://github.com/docker/for-linux/issues/219#issuecomment-375160449
# run it on all worker nodes at every instance restart
sudo mkdir /sys/fs/cgroup/systemd
sudo mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd
# should be using cgroupsv2 though

# port 10250 needs to be exposed on all worker nodes to enable container attachment
sudo ufw allow 10250
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment