diff --git a/setup-kubetools-new-PRERELEASE.sh b/setup-kubetools-new-PRERELEASE.sh new file mode 100755 index 0000000..54c484f --- /dev/null +++ b/setup-kubetools-new-PRERELEASE.sh @@ -0,0 +1,68 @@ +#!/bin/bash +# kubeadm installation instructions as on +# https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/ + +# this script supports centos 7 and Ubuntu 20.04 only +# run this script with sudo + +if ! [ $USER = root ] +then + echo run this script with sudo + exit 3 +fi + +# setting MYOS variable +MYOS=$(hostnamectl | awk '/Operating/ { print $3 }') +OSVERSION=$(hostnamectl | awk '/Operating/ { print $4 }') + +##### CentOS 7 config +if [ $MYOS = "CentOS" ] +then + echo RUNNING CENTOS CONFIG + cat < /etc/sysctl.d/k8s.conf +net.bridge.bridge-nf-call-ip6tables = 1 +net.bridge.bridge-nf-call-iptables = 1 +EOF +sysctl --system