Skip to content

Commit

Permalink
update k8s provision script to disable swap for ubuntu focal
Browse files Browse the repository at this point in the history
  • Loading branch information
mhewedy committed May 27, 2020
1 parent b995323 commit d6de986
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion etc/samples-provision/k8s/master.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ k8s_version=1.18.0
sudo hostnamectl set-hostname "$(hostname -I | awk '{print $1}')"
echo "export PS1=\"\[\e[1;35m\]\u\[\033[m\]@\[\e[1;92m\]$(hostname -I | awk '{print $1}')\[\033[m\]:\w \$ \"" >>~/.bashrc

sudo swapoff -a && sudo sed -i '/ swap / s/^/#/' /etc/fstab
sudo swapoff -a && sudo sed -i 's/\/swap/#\/swap/g' /etc/fstab

## Fix IP Addr
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CC86BB64
Expand Down
2 changes: 1 addition & 1 deletion etc/samples-provision/k8s/worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ k8s_version=1.18.0
sudo hostnamectl set-hostname "$(hostname -I | awk '{print $1}')"
echo "export PS1=\"\[\e[1;35m\]\u\[\033[m\]@\[\e[1;92m\]$(hostname -I | awk '{print $1}')\[\033[m\]:\w \$ \"" >>~/.bashrc

sudo swapoff -a && sudo sed -i '/ swap / s/^/#/' /etc/fstab
sudo swapoff -a && sudo sed -i 's/\/swap/#\/swap/g' /etc/fstab

## Fix IP Addr
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CC86BB64
Expand Down

0 comments on commit d6de986

Please sign in to comment.