commit b5b72729060630670f3aff96f0487ccb0355b087 Author: Jagrit Thapar Date: Tue Jul 9 15:15:00 2024 +0530 Add common script. diff --git a/scripts/0-common.sh b/scripts/0-common.sh new file mode 100644 index 0000000..6374143 --- /dev/null +++ b/scripts/0-common.sh @@ -0,0 +1,59 @@ +#!/bin/bash + + +cat << "EOF" + _ _ _ _ + (_) (_) | | | | + _ __ _ __ _ _ __ _ | |_ __| | ___ __ __ + | | / _` | / _` | | '__| | | | __| / _` | / _ \ \ \ / / + | | | (_| | | (_| | | | | | | |_ _ | (_| | | __/ \ V / + | | \__,_| \__, | |_| |_| \__| (_) \__,_| \___| \_/ + _/ | __/ | + |__/ |___/ + + Kubernetes Setup Script for All Nodes +EOF + + +# Set Kubernetes version +K8S_VERSION="1.30" + +# Update package index and install dependencies +sudo apt-get update -y +sudo apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release + +# Disable swap +sudo swapoff -a +sudo sed -i '/ swap / s/^/#/' /etc/fstab + +# Configure kernel parameters +cat <