set +eux
K8S_VERSION=1.26
-K8S_PACKAGE_VERSION="$K8S_VERSION".5-1.1
+K8S_PACKAGE_VERSION="$K8S_VERSION".15-1.1
# installs kubernetes packages
function install_kube() {
# initializes kubernetes control plane
function init_kubeadm() {
[ -z "${DEBUG_INSTALL}" ] || DEBUG beginning of function
+ sudo modprobe br_netfilter
+ echo "br_netfilter" | sudo tee /etc/modules-load.d/k8s.conf
+ sudo sysctl -w net.bridge.bridge-nf-call-iptables=1
+ echo "net.bridge.bridge-nf-call-iptables=1" | sudo tee /etc/sysctl.d/k8s.conf
sudo swapoff -a
sudo sed -i.bak '/.*none.*swap/s/^\(.*\)$/#\1/g' /etc/fstab
sudo kubeadm init --config $1 --dry-run || FATAL_TRACK k8scluster "kubeadm init dry-run failed"