Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating setup container and kubetools to work with Debian #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions setup-kubetools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down