This commit is contained in:
Jon A 2025-08-19 16:27:26 +02:00 committed by GitHub
commit ed25c25108
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ OSVERSION=$(hostnamectl | awk '/Operating/ { print $4 }')
sudo apt install -y jq
if [ $MYOS = "Ubuntu" ]
if [ $MYOS = "Ubuntu" ] || [ $MYOS = "Debian" ]
then
### setting up container runtime prereq
cat <<- EOF | sudo tee /etc/modules-load.d/containerd.conf

View File

@ -26,14 +26,14 @@ KUBEVERSION=$(curl -s https://api.github.com/repos/kubernetes/kubernetes/release
KUBEVERSION=${KUBEVERSION%.*}
if [ $MYOS = "Ubuntu" ]
if [ $MYOS = "Ubuntu" ] || [ $MYOS = "Debian" ]
then
echo RUNNING UBUNTU CONFIG
echo RUNNING UBUNTU/Debian CONFIG
cat <<EOF | sudo tee /etc/modules-load.d/k8s.conf
br_netfilter
EOF
sudo apt-get update && sudo apt-get install -y apt-transport-https curl
sudo apt-get update && sudo apt-get install -y apt-transport-https curl gpg
curl -fsSL https://pkgs.k8s.io/core:/stable:/${KUBEVERSION}/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
echo "deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/${KUBEVERSION}/deb/ /" | sudo tee /etc/apt/sources.list.d/kubernetes.list
sleep 2