Merge 2afbfe08dc into 33c340821b
This commit is contained in:
commit
ed25c25108
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user