From afd2588096c4402d03746fc0ccb47f051b32e551 Mon Sep 17 00:00:00 2001 From: ananto-msft <57770929+ananto-msft@users.noreply.github.com> Date: Thu, 30 Jan 2020 16:45:41 -0800 Subject: [PATCH] Adding sudo for swapoff --- .../kubeadm/ubuntu-single-node-vm/setup-controller.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/features/azure-arc/deployment/kubeadm/ubuntu-single-node-vm/setup-controller.sh b/samples/features/azure-arc/deployment/kubeadm/ubuntu-single-node-vm/setup-controller.sh index 159f37d4..f2ff581b 100644 --- a/samples/features/azure-arc/deployment/kubeadm/ubuntu-single-node-vm/setup-controller.sh +++ b/samples/features/azure-arc/deployment/kubeadm/ubuntu-single-node-vm/setup-controller.sh @@ -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 -