Skip to content

Instantly share code, notes, and snippets.

@BBijaya
BBijaya / kubenetes_install.sh
Created May 4, 2022 05:01
Install kubernetes on Debian based and Red Hat based systems
# setting selinux to permissive/disabled
SELINUX_STATE=$(getenforce)
if [ "$SELINUX_STATE" == "Enforcing" ]; then
setenforce 0
sed -i --follow-symlinks 's/SELINUX=enforcing/SELINUX=disabled/g'\
/etc/sysconfig/selinux
fi
# enabling the br_netfilter module for cluster communication
modprobe br_netfilter