Adding sudo for swapoff

This commit is contained in:
ananto-msft
2020-01-30 16:45:41 -08:00
committed by GitHub
parent d286731bb9
commit afd2588096
@@ -136,7 +136,7 @@ echo "Starting to setup pre-requisites for kubernetes..."
#
echo $(hostname -i) $(hostname) >> sudo tee -a /etc/hosts
swapoff -a
sudo swapoff -a
sudo sed -i '/swap/s/^\(.*\)$/#\1/g' /etc/fstab
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -